Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How can I use the Validation Ref # to describe the cell contents to be
'looked up' My LOOKUP formula is: =IF(B7="Gray",LOOKUP(B17,Accessories!A22:C24,Acces sories!B22:B24),LOOKUP(B17,Accessories!A22:C24,Acc essories!C22:C24)) [CTRL-SHIFT-ENTER] B17 contains a text string provided by Validation that does not match the nomenclature in the LOOKUP Table. (Validation returns REF# = '1-4" tube' or REF# = '2-4" tubes'. But the LOOKUP lists 4") I can deal with the quantities (1 or 2) elsewhere, but I need help in figuring out how to modify the 'B17' component Thanks. Mike |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Depending on what all validation choices you have, this might work:
=IF(B7="Gray",LOOKUP(VALUE(MID(B17,3,1)),Accessori es!A22:C24,Accessories!B22:B24),LOOKUP(VALUE(MID(B 17,3,1)),Accessories!A22:C24,Accessories!C22:C24)) Takes out the 3rd character from B17, converts it to a number, and then looks it up in your lookup table. If your lookup contains the following: 4" Modifed formula should be: =IF(B7="Gray",LOOKUP(MID(B17,3,2),Accessories!A22: C24,Accessories!B22:B24),LOOKUP(MID(B17,3,2),Acces sories!A22:C24,Accessories!C22:C24)) -- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "MichaelRobert" wrote: How can I use the Validation Ref # to describe the cell contents to be 'looked up' My LOOKUP formula is: =IF(B7="Gray",LOOKUP(B17,Accessories!A22:C24,Acces sories!B22:B24),LOOKUP(B17,Accessories!A22:C24,Acc essories!C22:C24)) [CTRL-SHIFT-ENTER] B17 contains a text string provided by Validation that does not match the nomenclature in the LOOKUP Table. (Validation returns REF# = '1-4" tube' or REF# = '2-4" tubes'. But the LOOKUP lists 4") I can deal with the quantities (1 or 2) elsewhere, but I need help in figuring out how to modify the 'B17' component Thanks. Mike |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have just realized I made a dumb posting. I withdraw my question and
apologize for wasting your time. I misread the Error Message 'Validation!#REF#', and thought it was part of the code ... Mike "MichaelRobert" wrote: How can I use the Validation Ref # to describe the cell contents to be 'looked up' My LOOKUP formula is: =IF(B7="Gray",LOOKUP(B17,Accessories!A22:C24,Acces sories!B22:B24),LOOKUP(B17,Accessories!A22:C24,Acc essories!C22:C24)) [CTRL-SHIFT-ENTER] B17 contains a text string provided by Validation that does not match the nomenclature in the LOOKUP Table. (Validation returns REF# = '1-4" tube' or REF# = '2-4" tubes'. But the LOOKUP lists 4") I can deal with the quantities (1 or 2) elsewhere, but I need help in figuring out how to modify the 'B17' component Thanks. Mike |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Luke:
Many thanks for your idea. I think it'll work. Maybe my post was not so dumb after all - just triggered by a misread :-) Mike "Luke M" wrote: Depending on what all validation choices you have, this might work: =IF(B7="Gray",LOOKUP(VALUE(MID(B17,3,1)),Accessori es!A22:C24,Accessories!B22:B24),LOOKUP(VALUE(MID(B 17,3,1)),Accessories!A22:C24,Accessories!C22:C24)) Takes out the 3rd character from B17, converts it to a number, and then looks it up in your lookup table. If your lookup contains the following: 4" Modifed formula should be: =IF(B7="Gray",LOOKUP(MID(B17,3,2),Accessories!A22: C24,Accessories!B22:B24),LOOKUP(MID(B17,3,2),Acces sories!A22:C24,Accessories!C22:C24)) -- Best Regards, Luke M *Remember to click "yes" if this post helped you!* "MichaelRobert" wrote: How can I use the Validation Ref # to describe the cell contents to be 'looked up' My LOOKUP formula is: =IF(B7="Gray",LOOKUP(B17,Accessories!A22:C24,Acces sories!B22:B24),LOOKUP(B17,Accessories!A22:C24,Acc essories!C22:C24)) [CTRL-SHIFT-ENTER] B17 contains a text string provided by Validation that does not match the nomenclature in the LOOKUP Table. (Validation returns REF# = '1-4" tube' or REF# = '2-4" tubes'. But the LOOKUP lists 4") I can deal with the quantities (1 or 2) elsewhere, but I need help in figuring out how to modify the 'B17' component Thanks. Mike |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Data Validation - V-Lookup - | Excel Discussion (Misc queries) | |||
Data Validation Custom with V Lookup | Excel Worksheet Functions | |||
Lookup Function for Data Validation | Excel Worksheet Functions | |||
Data validation combo box lookup | Excel Worksheet Functions | |||
Lookup validation data | Excel Discussion (Misc queries) |