Number value in one cell will equal a text value in another

Geoffo123

New Member
Joined
Dec 12, 2017
Messages
4
Hi,
Not sure how to do this, but I have one cell who's number value is taken from a drop-down list.

I need a corresponding cell to equal a text value depending upon the number chosen.
Can somebody please let me know how to do this

Thank you in advance
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Not sure exactly what you mean, but you can force numbers which are in cells as text to become integers by using the conversion functions.
CInt(Range("A1").Value) turns a text value in cell A1 to an integer value.
CLng(Range("A1").Value) turns it to a Long Integer value
CDbl(Range("A1").Value) turns it to a Double Iteger value for currency and other decimal values.
 
Upvote 0
Welcome to the forum.

Are you talking about some kind of a look-up function?

NumberMatching TextNumberText
1Horrible1Horrible
4Yucky2Terrible
7Pretty Good3Bad
4Yucky
5So-So
6OK
7Pretty Good
8Great
9Fantastic

<tbody>
</tbody>

The formula in B2 is:

=VLOOKUP(A2,$D$2:$E$10,2)


There are other types of lookups too.
 
Upvote 0

Forum statistics

Threads
1,215,029
Messages
6,122,760
Members
449,095
Latest member
m_smith_solihull

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