L
lukus2005
I have a NameRange to define a price list on worksheet 2.
On worksheet 1, I have a series of pulldown menus in order to select
an item.
I have tried the following formula successfully but since the
NameRange changes depending on what item has been selected, I need to
"grab" the NameRange selected and do a VLOOKUP within that NameRange.
I know this works...
=IF($C9=" "," ",VLOOKUP($E9,Sheet2!$A$9:$B$174,2,0))
But, I want the part "Sheet2!$A$9:$B$174" to take on the name of the
range based on what option is selected in the pulldown menu.
So if in the pulldown menu in D9 I select "Pipes", and then I select
"2 x 1" in the pulldown menu located in E9, I want my formula to look
for "2 x 1" within the NameRange for "Pipes" and pull the price for
that item found in the next column. Should I select "Ducts" instead
of "Pipes", it needs to look within the NameRange I defined for
"Ducts".
I tried unsuccessfully this...
=IF($C9=" "," ",VLOOKUP($E9,INDIRECT(C9),2,0)) where C9 returns the
NameRange.
TIA
On worksheet 1, I have a series of pulldown menus in order to select
an item.
I have tried the following formula successfully but since the
NameRange changes depending on what item has been selected, I need to
"grab" the NameRange selected and do a VLOOKUP within that NameRange.
I know this works...
=IF($C9=" "," ",VLOOKUP($E9,Sheet2!$A$9:$B$174,2,0))
But, I want the part "Sheet2!$A$9:$B$174" to take on the name of the
range based on what option is selected in the pulldown menu.
So if in the pulldown menu in D9 I select "Pipes", and then I select
"2 x 1" in the pulldown menu located in E9, I want my formula to look
for "2 x 1" within the NameRange for "Pipes" and pull the price for
that item found in the next column. Should I select "Ducts" instead
of "Pipes", it needs to look within the NameRange I defined for
"Ducts".
I tried unsuccessfully this...
=IF($C9=" "," ",VLOOKUP($E9,INDIRECT(C9),2,0)) where C9 returns the
NameRange.
TIA