Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi folks
I am having a problem with nested if statements, and vlookup. I have a combo box to select an item. The combo box is liked to a group of cell, where the date for it is kept. the list is 13 items long. I then perform a set of nested IF statements to work out a number for the item selected. this line is for the first half =IF(E2=A1,1,IF(E2=A2,2,IF(E2=A3,3,IF(E2=A4,4,IF(E2 =A5,5,IF(E2=A6,6,IF(E2=A7,7))))))) this line is for the next half, there are no macro's on this sheet. and it is virus free. thank you to anyone who is able to help me out =IF(E2=A8,8,IF(E2=A9,9,IF(E2=A10,10,IF(E2=A11,11,I F(E2=A12,12,IF(E2=A13,13)))))) and this line selects the number =IF(E5,E5,E6) E2 holds the combo box the data for the combo box resides in A1:A13 Here is the problem. the value returned from the the selection formula either comes up with #VALUE! or the correct number. I then perform a Vlookup to get some more data and I either get a return of #N/A or #VALUE!. I have spent the majority of a day trying different ways of doing this but still have this problem. I have an XLS worksheet available by email if you want to see the problem in action. Please just email me at and I'll be more than happy to email it to you |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Nested hlookup/vlookup (possibly just an if statement though?!?) | Excel Discussion (Misc queries) | |||
Nested IF statement with VLOOKUP | Excel Discussion (Misc queries) | |||
Retry: VLOOKUP nested in IF Statement | Excel Worksheet Functions | |||
Nested if statement problem! | Excel Programming | |||
Problem with nested IF_OR statement | Excel Worksheet Functions |