SUMIFS and Indirect Formula

F4TMAN

New Member
Joined
Jun 29, 2020
Messages
25
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Hello,

I'm not too familiar with indirect functions and I was trying to incorporate into my sumifs function. My current sumifs function is
=SUMIFS(FY20E!H:H,FY20E!A:A,$M4,FY20E!K:K,$J4,FY20E!E:E,$O4)

when i try adding the indirect function i ended up with this
=SUMIFS(indirect(A5&"!H:H"),A5&"!A:A", $M3,indirect(A5&"!K:K"),$J3,indirect(A5&"!E:E"),$O3))

I think im very close to getting it done but i keep getting the "there's a problem with this formula" error. Does anyone know what I'm doing wrong?

Thanks in advance
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Welcome to the forum.

It looks like you missed an INDIRECT out. Also, it's safer to wrap the sheet name in single quotes:

=SUMIFS(indirect("'"&A5&"'!H:H"),INDIRECT("'"&A5&"'!A:A"), $M3,indirect("'"&A5&"'!K:K"),$J3,indirect("'"&A5&"'!E:E"),$O3)

You should also be aware that INDIRECT is volatile, so it will recalculate whenever your workbook does, even if none of its inputs have changed, and that can slow down the workbook if you have a lot of these formulas.
 
Upvote 0
RoryA ...... I LOVE YOU!!!! lol thanks man you're a genuis you have no idea how much time you saved me.
 
Upvote 0

Forum statistics

Threads
1,214,848
Messages
6,121,917
Members
449,055
Latest member
KB13

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