vlookup question

darkmidget

New Member
Joined
Jun 12, 2002
Messages
18
Hi,



I am wondering if you can have the table array portion of the vlookup formula link to another cell. For example: I want the formula to be =vlookup(A1,C1,2) C1 would be one of 3 different defined names to different ranges. Is this possible and if so can you point me in the right direction?


Thanks,

Matt
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.

Derek

Well-known Member
Joined
Feb 16, 2002
Messages
1,592
Hi there
You could try use INDIRECT(C1)
regards
Derek
 

RichardS

Well-known Member
Joined
Feb 16, 2002
Messages
761
Try

=VLOOKUP(A1,INDIRECT(C1),2)

where C1 contains your range name.

Richard

EDIT: Too slow by far :(

_________________
constrMining.gif

This message was edited by RichardS on 2002-10-21 20:55
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
On 2002-10-21 20:46, darkmidget wrote:
Hi,



I am wondering if you can have the table array portion of the vlookup formula link to another cell. For example: I want the formula to be =vlookup(A1,C1,2) C1 would be one of 3 different defined names to different ranges. Is this possible and if so can you point me in the right direction?


Thanks,

Matt

Matt,

With 3 different names, you could get away with IF...

=VLOOKUP(A1,IF(C1="Name1",Name1,IF(C1="Name2",Name2,Name3)),2)
 

Forum statistics

Threads
1,144,273
Messages
5,723,437
Members
422,497
Latest member
dougy99

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top