IFERROR or ISERROR or something if no file or no tab

mayday1

Board Regular
Joined
Oct 5, 2007
Messages
241
I have a report with links to files that might not exist and to tabs that might not exist (but are in files that do exist). I'd like my report to be the same every month requardless so the same file works every month whether or not certain files or tabs are missing.

How can I do something like this below that will make a cell empty if there's no file on a particular day or if the file is there but one of the many tabs is not there because there was no data for that particular tab?

=IFERROR(VLOOKUP($B32782,'[MyFile.xlsx]MyTab'!$E$2:$F$4000,2),"")
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
To elaborate for someone searching for the answer, I've been told it's not possible.
 
Upvote 0
I do not think you can do this by standard Excel formula

Perhaps this apprach
- use workbook (W) as a template
- at report time.. copy W and save as T
- in T replace non-valid MyFile!MyTab formulas with blanks (see below)
- save T and run report

Practically ...
- maintain a list of external workbook\tab combinations
- use VBA to identify those which do not exist this month
- use VBA to loop through all formulas replacing the "bad" ones
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,529
Messages
6,114,155
Members
448,554
Latest member
Gleisner2

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