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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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,224,899
Messages
6,181,627
Members
453,058
Latest member
rmd0725

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