VLOOKUP + INDIRECT & CONCATENATE dynamic file name

hensleyj

New Member
Joined
Apr 2, 2012
Messages
39
Hey everyone,

Need help

I have the following Dynamic reference on sheet "Ranges"

Code:
=IF(TDCustomerName="","",INDIRECT(CONCATENATE("'[",$K$387,".xlsm]","sheet 1","'","!E3")))

This refers to another workbook with a range of customer data. The above code, obviously refers to an ever changing file name.

In the workbook that contains the data, some cells are blank, others will not be.

I need to include in the above, a line of code which tells it how to handle a blank cell within the vlookup.

I am trying to include the following before the INDIRECT part....
Code:
IF(VLOOKUP($B$3,B8:AB168,4,FALSE)="","",

However due to the dynamic name reference of the filename, i am unsure how i will add this line, to the above, with the dynamic filename. The sheet will always remain sheet1, but the value of K387 will confirm the name of the workbook, which should direct the vlookup and check if it is blank.

I can get it working without a dynamic name, but that will defeat the purpose as each user will be using a different workbook

Any ideas?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,422
Messages
5,837,143
Members
430,478
Latest member
masoodb1358

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