Using SumIFs within CountIFs

FeliciaMD

New Member
Joined
Mar 23, 2016
Messages
5
Hello - for simple use by other users, I'm limited to standard Excel 2010 functionality.

I'm trying to do a count of A, where sum of C by unique B are >0. This would be the first step of a much bigger CountIFS.

HELP!

ABC
1561Bob35
2206Bob-
200399Bob-
1914Sue28
1913Sue-
2102James93
985James-
1989James-
701Chelsea-

<colgroup><col><col><col><col><col><col span="2"></colgroup><tbody>
</tbody>
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hi, welcome to the board.

I can't follow how you get those results from your sample data.

Can you explain please ?
 
Upvote 0
Hi, welcome to the board.

I can't follow how you get those results from your sample data.

Can you explain please ?

This is the given data - I'm trying to do a count that will go into another table.

Apologies.

ABC
1561Bob35
2206Bob-
200399Bob-
1914Sue28
1913Sue-
2102James93
985James-
1989James-
701Chelsea-

<tbody>
</tbody>


C=0C >0
Count

<tbody>
</tbody>
 
Upvote 0
Apologies - trigger happy today.

I'm trying to do a count of A, where sum of C by unique B are >0. This would be the first step of a much bigger CountIFS

ABC
1561Bob35
2206Bob-
200399Bob-
1914Sue28
1913Sue-
2102James93
985James-
1989James-
701Chelsea-

<tbody>
</tbody>




C=0C > 0
Count18

<tbody>
</tbody>
 
Upvote 0
That doesn't make it any clearer to me I'm afraid.

How do you get a result of 1, for C=0 ?
How do you get a result of 8, for C > 0 ?
 
Upvote 0
I'd just use a helper column (say D) that uses =SUMIF(B:B,B2,C:C) then use that column for a COUNTIF(D:D,">0")
 
Upvote 0
That is the manual count, that I'm trying to achieve with a formula.

I have 9 contracts (A), 3 belonging to Bob(B), 2 belonging to Sue(B), 3 belonging to James(B), and 1 belonging to Chelsea(B).
I have to count the contracts(A) by their grouped income (C).


That doesn't make it any clearer to me I'm afraid.

How do you get a result of 1, for C=0 ?
How do you get a result of 8, for C > 0 ?
 
Upvote 0
Well perhaps I'm being thick but I still don't get it.

How do you get 1 ?
How do you get 8 ?
I think Chelsea is the one and the others combined are eight. Asfaics somebody from the B column has at least one value, it belongs in the C>0 count. It's only when there's someone with a zero over all lines they go into C = 0 count.
And if I'm right, both of these counts should add up to the number of rows, making one formula a very easy row numbers - count.
 
Upvote 0
Thanks, I was trying to avoid it, but think this will be simplest for now. Nothing like holding up analysis because you can't get your formula to work. :/

I'd just use a helper column (say D) that uses =SUMIF(B:B,B2,C:C) then use that column for a COUNTIF(D:D,">0")
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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