MATCH Formula, Value=0?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I was using this forumula, which I found in another thread here...

=IF(A2="","",MATCH(A2,{"I strongly disagree","I disagree","Neutral", "I
agree","I strongly
agree"},FALSE))


Is there any way to set your own values for what these mean? I don't want
strongly disagree to equal 1, but zero. I tried changing false to -1, but it
didn't work. What can I do to set up specific values for each option?

Thanks
 
One way, using INDEX / MATCH:
=IF(A2="","",INDEX({0;1;2;3;4},MATCH(A2,{"I strongly disagree";"I
disagree";"Neutral";"I agree";"I strongly agree"},0)))

Above will return the values: {0;1;2;3;4}
corresponding to:
{"I strongly disagree";"I disagree";"Neutral";"I agree";"I strongly agree"}
 
Thank You!!!

Max said:
One way, using INDEX / MATCH:
=IF(A2="","",INDEX({0;1;2;3;4},MATCH(A2,{"I strongly disagree";"I
disagree";"Neutral";"I agree";"I strongly agree"},0)))

Above will return the values: {0;1;2;3;4}
corresponding to:
{"I strongly disagree";"I disagree";"Neutral";"I agree";"I strongly agree"}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top