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
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
On 2002-02-18 11:56, James wrote:
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

James, try this formula:

=SUM((S7:S2000)*(Q7:Q2000<>0))

and enter it as an array formula (instead of pressing ENTER, use CTRL+SHIFT+ENTER).
 
Upvote 0
On 2002-02-18 11:56, James wrote:
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

=SUMIF(Q7:Q2000,"<>",S7:S2000)
 
Upvote 0
I've tried the solotion provided here, and I think it does not work on Excel 2007 as it did on older versions.

My situation is slightly different though, so it may just need a different formula.

I am trying to sum H7:I20 when D7:D20 is not blank. If a cell in D7:D20 is blank, then I don't want to sum any of the cells on that row (do not include H<row of blank> or I<row of blank>)

Because people keep breaking the formulas that use Ctrl+Shift+Enter, I'm trying to avoid this if at all possible.

I would appreciate any advice.

Thanks,
Michael
 
Upvote 0
In Excel 2007, or any other version...use the simple formula in S6:

=SUMIF(Q7:Q2000,">0",S7:S2000) or SUMIF(Q7:Q2000,">""",S7:S2000)

with Q column as your criteria range, the operator ">0" as your criteria, and the S column as the values you want summed when the condition in Q is met.
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,425
Members
448,961
Latest member
nzskater

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