Sum if and Subtotal formula

tarnpiet

New Member
Joined
Jan 6, 2015
Messages
7
Hi, I need some help please. I have trying to subtotal column Z for cells where column AA=No.

The formulas work individually but I can't work out how to put them together in the one cell/formula.

Currently using:
SUBTOTAL(109,Z4:Z9600)
SUMIF(AA4:AA9600,"No",z4:Z9600)

But how do I string them together?? Thanks in advance.
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi, I need some help please. I have trying to subtotal column Z for cells where column AA=No.

The formulas work individually but I can't work out how to put them together in the one cell/formula.

Currently using:
SUBTOTAL(109,Z4:Z9600)
SUMIF(AA4:AA9600,"No",z4:Z9600)

But how do I string them together?? Thanks in advance.

Try...
Rich (BB code):
=SUMPRODUCT(
  SUBTOTAL(109,OFFSET(Z4,ROW(Z4:Z9600)-ROW(Z4),0)),
  (AA4:AA9600="No")+0)
 
Upvote 0

Forum statistics

Threads
1,216,146
Messages
6,129,142
Members
449,488
Latest member
qh017

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