Text to correspond to number?

jennie1153

New Member
Joined
Sep 14, 2011
Messages
4
What I am looking to create formula wise is that if I put a number into let's say Column B I want it to "auto fill" Column C with a certain text that corresponds to that particular number.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Example:
Column B.....Column C
813204597.....Red
813204598.....Blue
813204597.....Red
813204597.....Red
Etc.

Can this be done?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
You can do a VLookup. Set up a list of your numbers with corresponding text in, lets say, column J and K - starting in row 2:

column J........Column K
813204597.......Red
813204598.......Blue
813204599.......Green
813204600.......Yellow

With the numbers needing the corresponding text in Column B. Use this formula in C2:


=VLOOKUP(B2,$J$2$:$K$5,2)
 
Upvote 0
So there's no other way besides the VLOOKUP? Problem I have with doing the VLOOKUP is that others will have access to this file and well to put it nicely I’m impressed they figured out how to open an excel document.. If anything were to "accidently" get changed in the VLOOKUP or if the drop down of choices is too much for them to handle all these entries would have to be redone. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
Shame you can't just tell excel that if Column B equals "Said number" than make Column C "Said text" automatically<o:p></o:p>
 
Upvote 0
I believe you can up to 7 numbers. I have only used 3.

in C2: =IF(B2=813204597,"Red",IF(B2=813204598,"Blue",IF(B2=813204599,"Green")))

But what stops little fingers from messing that up too?
 
Upvote 0

Forum statistics

Threads
1,224,552
Messages
6,179,487
Members
452,917
Latest member
MrsMSalt

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