Sumproduct not working

rahildhody

Board Regular
Joined
Aug 4, 2016
Messages
55
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm trying to calculate the headcount & salary by allocation for a 5yr period where the salaries change every year, but the headcount allocation stays the same. I think im doing something very silly as the sumproduct formula that im using doesnt seem to work.

Frmula used in F20 calculates correctly based on End of Month dates & calculates the count correctly as the period increases.

1717517211394.png


The same cannot be said when im trying to calculate the salary cost for the same period:

1717517227531.png


I'm sure its something really silly between the arrays but im not able to figure out what it is. Could someone please assist.
This is the fomula im trying to use in F28:

=SUMPRODUCT($N$5:$T$14*($D$5:$D$14=$D28)*($N$4:$T$4=$E28)*($F$5:$F$14<=F$18)*$G$5:$L$14*($G$4:$L$4=F$17))


Thanks in advance.

Cheers,
Rahil
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Try (untested):

Excel Formula:
=SUMPRODUCT($N$5:$T$14*($D$5:$D$14=$D28)*($N$4:$T$4=$E28)*($F$5:$F$14<=F$18)*INDEX($G$5:$L$14,0,MATCH(F$17,$G$4:$L$4,0)))
 
Upvote 0
Solution
Try (untested):

Excel Formula:
=SUMPRODUCT($N$5:$T$14*($D$5:$D$14=$D28)*($N$4:$T$4=$E28)*($F$5:$F$14<=F$18)*INDEX($G$5:$L$14,0,MATCH(F$17,$G$4:$L$4,0)))
OMG! thank you so much! that worked like a charm! knew it was something really silly. thank you for providing me with a solution.
 
Upvote 0

Forum statistics

Threads
1,223,883
Messages
6,175,167
Members
452,615
Latest member
bogeys2birdies

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