Can I use COUNTIF in subtotals?

S Bond

New Member
Joined
Mar 26, 2002
Messages
1
Can I change COUNT to COUNTIF in creating subtotals? I have existign subtotals but want to further summarise based on a specific conditon.

all help appreciated.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Not pretty but you could highlight your row and

1) find =subtotal(3,
replace with zzzcountif(

2) find )
replace with ,your criteria)

3) find zzz
replace with =
 
Upvote 0
Good evening Mr Bond,

are you using the =SUBTOTAL function because some of your rows become filtered out ?

I was after a similar function that subtotalled (on filtered rows) but with conditions a little while ago.

Guess what ? I failed.

in the end, I stuck my criteria in columns over to thr right

ie : if a1="dog" then put in the value
next column if a1="cat" then put in the value

etc etc etc

then, underneath these columns (which are your criteria) you apply the same =subtotal function as your original ranges.... it effectively subtotals each column which is in itself based on a *single* criteria

if you have 2 or more, just use an =AND function

not much help eh ?

Chris
:)



edit.......

if your subtotals are just =SUMS try a search in this board on "SUMPRODUCT" and "Aladin" he has some great sumproduct formulae that sum and count based on single or multiple criteria....
This message was edited by Chris Davison on 2002-03-27 15:13
 
Upvote 0

Forum statistics

Threads
1,214,518
Messages
6,119,996
Members
448,935
Latest member
ijat

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