Using Indirect

HowieG53

New Member
Joined
May 6, 2020
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
I have this formula in a cell (H12) on a summary sheet

=SUMIF('[TN-53 Book Sheets.xlsx]01450.01'!$A$10:$A$70,"<="&$H$3,'[TN-53 Book Sheets.xlsx]01450.01'!$E$10:$E$70)

The value 01450.01 (used twice in the formula) is a tab name in the source file and it's the value in cell A12 of the sheet.
When I copy the formula to the next row I want to pick up the value in A13..etc.

I figure an INDIRECT reference to A12 (A13 etc) is what's needed, but I can't quite hit the syntax.

TIA for any help.
Howie
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Welcome to MrExcel:)

It looks like you need

=SUMIF(INDIRECT("'[TN-53 Book Sheets.xlsx]"&A12&"'!$A$10:$A$70"),"<="&$H$3,INDIRECT("'[TN-53 Book Sheets.xlsx]"&A12&"'!$E$10:$E$70"))
 
Upvote 0
Welcome to MrExcel:)

It looks like you need

=SUMIF(INDIRECT("'[TN-53 Book Sheets.xlsx]"&A12&"'!$A$10:$A$70"),"<="&$H$3,INDIRECT("'[TN-53 Book Sheets.xlsx]"&A12&"'!$E$10:$E$70"))

I had tried similar, I was leaving out the ") after the $A$70 (not closing the first INDIRECT), so when I got to the second INDIRECT excel didn't offer options. that should have been my clue.

Thanks very much, you've saved me a lot of time.
Howie
 
Upvote 0

Forum statistics

Threads
1,215,758
Messages
6,126,709
Members
449,331
Latest member
smckenzie2016

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