Sum total in S7:S2000 w/ a twist

James

Active Member
Joined
Feb 17, 2002
Messages
327
Hi,

I need to sum a total in Column S7:S2000 only
if Column Q7:Q2000 is populated(has a number
in it)the sum total will reside in S6,
so it would be something like this:
=Sum(S7:S2000) if Q7:Q2000 is populated,if
any cell in Q7:Q2000 is empty then the cell
in Column S is not added to the total.

Any help on this would be appreciated

Thanks James
 
=SUMPRODUCT((D7:D20<>"")*(H7:I20))

This worked for me, thanks for such a quick response. I had been racking my brain for couple of hours, and decided to ask (I never really understood how Product work, still don't but I should probably look it up now).

I've been reading the forums off an on for a few years, but this was my first post!
 
Upvote 0

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.
Code:
=SUMPRODUCT((D7:D20<>"")*(H7:I20))

This worked for me, thanks for such a quick response. I had been racking my brain for couple of hours, and decided to ask (I never really understood how Product work, still don't but I should probably look it up now).

I've been reading the forums off an on for a few years, but this was my first post!

Also...

=SUM(SUMIF(D7:D20,"<>",H7:H20),SUMIF(D7:D20,"<>",I7:I20))

This allows us to avoid invoking a SumProduct formula with the * syntax.
 
Upvote 0

Forum statistics

Threads
1,214,952
Messages
6,122,454
Members
449,083
Latest member
Ava19

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