Hello everyone,
My first time on this forum so please forgive any protocol mistakes I'm about to make. Thanks in advance for any help!
I have a worksheet that holds all of the answers to a commute survey I conducted a few months ago.
In Row 1, each question is listed in its entirety and has its own column.
Respondents' answers begin on Row 2.
I am trying to assign each respondent a primary mode of transportation for their "to work" and "home" trips. Imagine that A - E represents their "to work" answers in minutes.
So, if for instance, someone walked to a bus stop it might look like this on Row 2. What I would like to do is assign "BUS" to F2
A | B | C | D | E | F
Row 1 WALK | BUS | BIKE | DRIVE | CARPOOL |
Row 2 10 | 25 | 0 | 0 | 0 | BUS
Row 3 0 | 10 | 15 | 0 | 0 | BIKE
Apologies for the formatting.
I was having success with the following formula but now I'm getting an Err508:
=INDEX($A$1:$E$1,1,MATCH(MAX(A2:E2),E2:E2,0))
Any suggestions?
Also, in Row 1 the entire question is restated from the survey - not like it's shown here. This is what Cell B1 looks like in my sheet:
"6. How Did You Get to Work Today (If today was not a normal commute day, please describe a typical day) [BUS]"
Is it easier to pluck out BUS from the statement in Row 1 or is there a way for me to assign "BUS" or any other transport type after the statement is evaluated? For those who are willing I appreciate your thoughts on how to do this as well.
After I assign everyone a primary mode I will sum them all up.
Looking forward to your replies!
Thanks again,
Angela
Bookmarks