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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,214,834
Messages
6,121,876
Members
449,056
Latest member
ruhulaminappu

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