Sumproduct/Indirect formula needed

colinheslop1984

Board Regular
Joined
Oct 14, 2016
Messages
129
Office Version
  1. 2016
Hello

Can someone please help re-write the formula. Not sure what I'm doing wrong, I get #REF error.

=SUMPRODUCT(INDIRECT("'"&C$1&"'!$c$5:$au$54")*(INDIRECT("'"&C$1&"'!$a$5:$a$47"=E2)*(INDIRECT("'"&C$1&"'!$c$1:$au$1"=E2)*(INDIRECT("'"&C$1&"'!$c$3:$au$3"="total"))))

C$1 = Worksheet reference
$c$5:$au$54 = Data Range
$a$5:$a$47 = Criteria range 1 on vertical axis
G2 = Criteria 1
$c$1:$au$1 = Criteria range 2 on horizontal axis
E2 = Criteria 2
$c$3:$au$3 = Criteria range 3 on horizontal axis
"total" = Criteria 3 on horizontal axis

Let me know if you need more info

I am using Excel 2016
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
I am using Excel 2016

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
You have the brackets in the wrong place & also the A5:A47 range is the wrong size.
Excel Formula:
=SUMPRODUCT(INDIRECT("'"&C$1&"'!$c$5:$au$54")*(INDIRECT("'"&C$1&"'!$a$5:$a$54")=E2)*(INDIRECT("'"&C$1&"'!$c$1:$au$1")=E2)*(INDIRECT("'"&C$1&"'!$c$3:$au$3")="total"))
 
Upvote 0
You have the brackets in the wrong place & also the A5:A47 range is the wrong size.
Excel Formula:
=SUMPRODUCT(INDIRECT("'"&C$1&"'!$c$5:$au$54")*(INDIRECT("'"&C$1&"'!$a$5:$a$54")=E2)*(INDIRECT("'"&C$1&"'!$c$1:$au$1")=E2)*(INDIRECT("'"&C$1&"'!$c$3:$au$3")="total"))
I still get a #REF error, not sure why
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,737
Messages
6,180,653
Members
452,992
Latest member
TokugawaIesuma

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