Using vlookup and indirect functions together

jdfch2

New Member
Joined
Jul 18, 2019
Messages
2
Hi,

Please can I ask if this can be done?

I am wanting to vlookup some data from a cell (K3) firstly then if that is blank, vlookup on L2, then if that is empty to use an indirect function to use a dropdown list from a named range.

I can do the first 2 parts IFERROR(IF(K3<>"",VLOOKUP(K3,Categories!B:D,2,FALSE),IF('Data Sheet'!L3<>"",VLOOKUP('Data Sheet'!L3,Categories!B:D,2,FALSE),"")),"")

I don't know how to add the indirect function as the 3rd option..

Many thanks

Jason
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Code:
=IFERROR(IF(K3<>"",VLOOKUP(K3,Categories!B:D,2,FALSE),IF('Data Sheet'!L3<>"",VLOOKUP('Data Sheet'!L3,Categories!B:D,2,FALSE),VLOOKUP(INDIRECT(Country),Categories!B:D,2,FALSE))),"")
 
Upvote 0

Forum statistics

Threads
1,214,951
Messages
6,122,446
Members
449,083
Latest member
Ava19

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
Back
Top