Converting values to text

K

Keith Rathband

I have a load of values which i want to convert to text, the text will
depend on the value. ie

If value=1, text = DOG
If value=2, text = CAT
If value=4, text = PIG

Thanks.
 
M

Mike H

Vlookup is probably the best but consider this as well for up to 29 options

=CHOOSE(A1,"Cat","Dog","Pig","Giraffe","Wombat","Aardvark","Guineafowl")

Mike
 
G

Gord Dibben

=LOOKUP(A1,{1,2,3,4,5},{"Dog","Cat","Rat","Pig","Dugong"})


Gord Dibben MS Excel MVP
 

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