SUMIF With "Indirect" link to closed workbook

rehanahmad

New Member
Joined
Jan 12, 2011
Messages
23
Office Version
  1. 2019
  2. 2016
Hello all
I want to use a combination of Sumif and Indirect function to link to data in closed workbook in a folder location. I have wrote =SUMIF(INDIRECT("'["&Sheet2!C9&".xlsx"&"]"&Sheet2!D9&"'!"&"T:T"),BB14,INDIRECT("'["&Sheet2!C9&".xlsx"&"]"&Sheet2!D9&"'!"&"H:H")), where Sheet2!C9 and Sheet2!D9 are cells reference to file locations and sheet name respectively. The formula is giving "#REF!", can someone see what is wrong with the formula?
 
Impressive typo given that you have correct closing parentheses at the end.
I am not giving the full formula as it might breach my work ethics thats why i copied and pasted the formula and changed some texts just to give an idea.
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Yes but you changed it to a completely different formula. That is not just a typo, especially as one formula would work with a closed workbook, and the other would not!
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,963
Members
449,094
Latest member
Anshu121

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