I'm converting a lot of text survey results into numeric results, and
I have it working, but it seems really cumbersome. Also, my biggest
spreadsheet (about 7000 rows) takes 20 minutes to process, so I think
I'm doing something wrong.
i'm currently using blocks like:
If Cells(Emailrow, 6).Value = "Very Satisfied" Then 'Satisfied
Response Time
Sheets("Tally").Select
Cells(Tallyrow, 4).Value = 5
Sheets("Email").Select
ElseIf Cells(Emailrow, 6).Value = "Somewhat Satisfied" Then
Sheets("Tally").Select
Cells(Tallyrow, 4).Value = 4
Sheets("Email").Select
ElseIf Cells(Emailrow, 6).Value = "Neutral" Then
Sheets("Tally").Select
Cells(Tallyrow, 4).Value = 3
Sheets("Email").Select
ElseIf Cells(Emailrow, 6).Value = "Somewhat Unsatisfied" Then
Sheets("Tally").Select
Cells(Tallyrow, 4).Value = 2
Sheets("Email").Select
ElseIf Cells(Emailrow, 6).Value = "Very Unsatisfied" Then
Sheets("Tally").Select
Cells(Tallyrow, 4).Value = 1
Sheets("Email").Select
End If
But this is giving me about 30 or so if/then statements per page.
Is there a way to code in a reference table something like:
Very Satisfied=5
Somewhat Satisfied=4
Neutral=3 etc
And then have it just look cells up on the reference chart as it
reads new rows?
Part of this is complicated by the fact that different questions have
different text answers. For instance Very Satisfied, Strongly agree,
and Completely Solved are all =5 depending on what the question was.
Is having an if/then for every column really the best way for me to
be doing this?