searching for a value and converting it to text

lucy

New Member
Joined
Nov 5, 2002
Messages
1
Does anyone know how to seach for a numeric value in a cell and if found convert it to a specific text value
For example:
Cell A:1 could have a numeric value between 1 and 5. I want Cell A:2 to read the numeric value and convert it to a text format: if 1 then GO, if 2, then STOP, if 3 then PAUSE, if 4 then RUN, if 5 then JUMP.
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
In A2 enter
=CHOOSE(A1,"GO","STOP","PAUSE","RUN","JUMP")

You may have up to 29 choices
This message was edited by lenze on 2002-11-06 14:01
 
Upvote 0
Or...

=INDEX({"GO";"STOP";"PAUSE";"RUN";"JUMP"},A1)
This message was edited by Mark W. on 2002-11-06 14:28
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,394
Members
448,957
Latest member
Hat4Life

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top