Else If

M

mallets123

Is there a function which will check in a specified cell for a number
(should be from 1-10) and return a specific value based what number it
found in that cell?

Ex.
IF(A1=1,"text1")
IF(A1=2,"text2")
IF(A1=3,"text3")
IF(A1=4,"text4")
IF(A1=5,"text5")
IF(A1=6,"text6")
IF(A1=7,"text7")
IF(A1=8,"text8")
etc...
 
R

Rajah

If you're sure it's going to be between 1 and 10, the CHOOSE function
will work for up to 29 values. It will give you a #VALUE error if A1
has a number greater than 10.

=CHOOSE(A1,"text1","text2","text3","text4","text5","text6","text7","text8","text9","text10")
 
R

RagDyeR

You could try this:

=INDEX({"text1","text2","text3","text4","text5"},A1)

--

HTH,

RD
=====================================================
Please keep all correspondence within the Group, so all may benefit!
=====================================================

in message
Is there a function which will check in a specified cell for a number
(should be from 1-10) and return a specific value based what number it
found in that cell?

Ex.
IF(A1=1,"text1")
IF(A1=2,"text2")
IF(A1=3,"text3")
IF(A1=4,"text4")
IF(A1=5,"text5")
IF(A1=6,"text6")
IF(A1=7,"text7")
IF(A1=8,"text8")
etc...
 

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

Top