Combine sumproduct with IF

alyssa75

Board Regular
Joined
May 14, 2007
Messages
240
Formula currently is something like:

Sumproduct(b1:b100,c1:c100) to get the aggregate of (b1*c1)+(b2+c2)+.....etc


How can I add a condition to only perform include in formula if D = something.

So needing a simplified version of the following longhand formula:

if(D1 = a35,b1*c1,0)+if(D2=a35,b2*c2,0)+...etc...all the way through the end of the range. say row 100.

Any ideas?

Thanks!
 
Holy--That is it! Thank you Jonmo1!

Probably

=SUMPRODUCT(--('Timecard Detail FY16'!E2:E7601=M3),--(MONTH('Timecard Detail FY16'!H2:H7601)=10),'Timecard Detail FY16'!M2:M7601)
 
Upvote 0

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
@Bob...Jonmo addressed the syntax. It just didn't make sense to have a comma before the M3. But I see now that you were not the person who started this thread. Were you even asking a question? Or trying to solve the original question? If you had a question, is it solved now?
 
Upvote 0

Forum statistics

Threads
1,216,756
Messages
6,132,536
Members
449,735
Latest member
Gary_M

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