IF Statment for pulling data from another workbook and if its not found looks at the next workbook?

NGB82KS

Board Regular
Joined
Nov 7, 2019
Messages
82
Office Version
  1. 2016
I have an excel spreadsheet that pulls all our server logs into 1 location using the following code
ServerNameTotal
Server 01
Excel Formula:
='\\Server01\information\[Server Weekly Report 2021 04 29.xlsx]Summary'!$A$1
Server 02
Excel Formula:
='\\Server02\information\[Server Weekly Report 2021 04 29.xlsx]Summary'!$A$1
However, the report can be generated anywhere between 1-3 days.
My question is there a way to IF statement that that looks for that file/cell reference, and if not found, will look for the next file date & again a 3rd time, and if it finds any of them, put that result into the excel spreadsheet?

E.g. (=IF(\\Server01\information\[Server Weekly Report 2021 04 28.xlsx]Summary'!$A$1 isnt found, then look here \\Server01\information\[Server Weekly Report 2021 04 29.xlsx]Summary'!$A$1 or here \\Server01\information\[Server Weekly Report 2021 04 30.xlsx]Summary'!$A$1) and whichever file/cell reference is found, puts it into the file?
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I think you are going to need VBA to do this. Don't have any idea at this time how, but seriously doubt this is doable with formulas.
 
Upvote 0

Forum statistics

Threads
1,214,792
Messages
6,121,612
Members
449,039
Latest member
Mbone Mathonsi

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