Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I hope I can put this understandably.
I have 2 columns (A and B) on one worksheet and 2 columns (a2 and b2) and a second worksheet. In Column a2 is a range of values (alpha,beta,charlie...zulu) named "list" In Column b2 is a range of associated costs (1,2,3,4....26) Column A has a data valadation field using a drop-down list that allows the user to choose a name (alpha,beta...) What I need is for Column B to automaticly fill with the associated cost depending on whichever value is chosen in Coumn A (so if alpha is chose the adjacent cell is filled with 1, beta..2, charlie..3) I can not figure out how to do this. The closest I can come is a very ugly nested IF statement but even that doesn't work as I can't nest 26 IF statments. Any help would be wonderfull. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You want to do a lookup. See if this helps:
http://contextures.com/xlFunctions02.html Biff "Nevermore" wrote in message ... I hope I can put this understandably. I have 2 columns (A and B) on one worksheet and 2 columns (a2 and b2) and a second worksheet. In Column a2 is a range of values (alpha,beta,charlie...zulu) named "list" In Column b2 is a range of associated costs (1,2,3,4....26) Column A has a data valadation field using a drop-down list that allows the user to choose a name (alpha,beta...) What I need is for Column B to automaticly fill with the associated cost depending on whichever value is chosen in Coumn A (so if alpha is chose the adjacent cell is filled with 1, beta..2, charlie..3) I can not figure out how to do this. The closest I can come is a very ugly nested IF statement but even that doesn't work as I can't nest 26 IF statments. Any help would be wonderfull. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Use the VLOOKUP function like this...
=VLOOKUP(A1,{"alpha",1;"beta",2;"charlie",3},2) or you can insert a small table like this... C D 1 alpha 1 2 beta 2 3 charlie 3 4 ... and use a formula like this... =VLOOKUP(A1,C1:D3,2) you should be able to expand both formulas to include the entire selection. "Nevermore" wrote: I hope I can put this understandably. I have 2 columns (A and B) on one worksheet and 2 columns (a2 and b2) and a second worksheet. In Column a2 is a range of values (alpha,beta,charlie...zulu) named "list" In Column b2 is a range of associated costs (1,2,3,4....26) Column A has a data valadation field using a drop-down list that allows the user to choose a name (alpha,beta...) What I need is for Column B to automaticly fill with the associated cost depending on whichever value is chosen in Coumn A (so if alpha is chose the adjacent cell is filled with 1, beta..2, charlie..3) I can not figure out how to do this. The closest I can come is a very ugly nested IF statement but even that doesn't work as I can't nest 26 IF statments. Any help would be wonderfull. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Custom functions calculating time arguments Help Desperate | Excel Worksheet Functions | |||
How to create/run "cell A equals Cell B put Cell C info in Cell D | Excel Discussion (Misc queries) | |||
Auto fill multiple cells depending on single cell value | Excel Worksheet Functions | |||
Cell Value Updated based cell input | Excel Discussion (Misc queries) | |||
Identifying the Active Fill Color | Excel Discussion (Misc queries) |