Reference to external closed workbook using "sum" and "if"

Generally_confused

New Member
Joined
May 16, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
I am trying to use a sum and if function to reference an external workbook when the external workbook is closed. The formula that I am using is:

=SUM(IF(Forecasts_2022.xlsm!Forecast14[Resource Name]=B15,Forecasts_2022.xlsm!Forecast14[Feb-22]))

This formula references an external table and if there is a name match to the external table then it will sum up the values associated with that name. For example, if the name in cell B15="Joe" and the external workbook's "Resource Name" column also has "Joe" in it, then the numbers associated with Joe will be added. The issue is that this formula worked a few days ago when the external workbook is closed but it now no longer works. Can anyone help? I also used the same formula structure to reference a different closed workbook and that works but I am not sure why the reference to this Forecasts closed workbook is not. Thanks!
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I don't know the exact answer as to why but update it to be the full path to the closed workbook and it should work. If you open both workbooks at the same time I believe it updates the formula to a short path and no longer links to the external book but not 100% on that.
 
Upvote 0
I am having trouble referencing the full path. I have added the full path to the formula but when I close the external workbook the #REF error pops up again.
 
Upvote 0
Lets say I have a file called MyExcelFile.xlsx in my downloads folder and I want to reference cell A1 from Sheet1

Excel Formula:
='C:\Users\Username\Downloads\[MyExcelFile.xlsx]Sheet1'!$A$1
 
Upvote 0
As far as I know you cannot use structured references if you want the formula to work with a closed workbook, you will need to use normal ranges.
 
Upvote 0
Solution
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,830
Members
449,096
Latest member
Erald

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