how to replace character by the numeric no.
i have a list of color ,i want to when someone chose the color name ..it show its designated Numerical No...
like this.
color name color code
Red 1
Blue 2
Black 3
white 4
new green 5
pink 6
orange 7
dark green
thanks in advance
You can use VLOOKUP
e.g.
If list is in X1:Y10 and user enters colour in A2, then formula would be:
=VLOOKUP(A2,$X$1:$Y$10,2,FALSE)
See VLOOKUP help in Excel help files for more.
Last edited by NBVC; 01-13-2012 at 10:21 AM.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
If your colours are in column A and the numerical values in column B, with the selected colour in, say, cell C1 then in another cell try:
=VLOOKUP(C1,A:B,2,FALSE)
Thanks Andrew... fixed.
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
thanks lot..it done..
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks