sumproduct help

Bombaye

New Member
Joined
Feb 21, 2011
Messages
7
Hi there, I am currently trying to convert this formula IF(AND(G24:G27=G24,H24:H27=H24,D24:D27=D24),"***","") into a sumproduct/sumif function with the same criteria, the asterisks and blank returns are just something I used to make sure it works. Please can someone demonstrate how to do this and which is better.
Many thanks
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Actually what I meant to say was that where the columns have the value in g24 to then sum the values in f.

If it helps I'm using excel 2007
 
Upvote 0
Actually what I meant to say was that where the columns have the value in g24 to then sum the values in f.

If it helps I'm using excel 2007

=sumproduct(--(g24:g27=g24),--(h24:h27=h24),-(d24:d27=d24),--(f24:f27))
 
Upvote 0
In Excel 2007 you can use SUMIFS for the same result, i.e.

SUMIFS(F24:F27,G24:G27,G24,H24:H27,H24,D24:D27,D24)
 
Upvote 0
Thanks for that guys. How about if I was to add left(h24:h27),4=left(h24),4 into the formula as that doesn't seem to work?
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,866
Members
452,948
Latest member
UsmanAli786

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