Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Using Validation Ref # within LOOKUP

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Using Validation Ref # within LOOKUP

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Using Validation Ref # within LOOKUP

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 64
Default Using Validation Ref # within LOOKUP

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Validation - V-Lookup - retired bill Excel Discussion (Misc queries) 1 April 23rd 09 03:28 AM
Data Validation Custom with V Lookup Scott R Excel Worksheet Functions 6 December 4th 08 06:30 AM
Lookup Function for Data Validation NH Excel Worksheet Functions 2 October 16th 08 06:33 PM
Data validation combo box lookup PCreighton Excel Worksheet Functions 0 September 24th 07 06:24 PM
Lookup validation data Craig Excel Discussion (Misc queries) 1 March 29th 06 04:29 PM


All times are GMT +1. The time now is 10:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"