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

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

lenze

Legend
Joined
Feb 18, 2002
Messages
13,690
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
 

Mark W.

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,654
Or...

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

Forum statistics

Threads
1,144,050
Messages
5,722,229
Members
422,417
Latest member
Johhny

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
Top