Using SUMIFS and COUNT Together?

Dukefrukem

New Member
Joined
May 6, 2011
Messages
3
Is it possible to use these two functions together?

What I WANT to do is this:

=SUMIFS(COUNT(J7:J165),Name,$L7,Month,M$5)

But that syntax is obviously incorrect.

So, I'd like for the SUMIFs to use the first sum range, to simply count the number of rows I am adding together.

Example: My data is 100 rows, My Criteria_Name1 would be Name. So I'd like this formula to count how many times Name appears over that 100 rows.

Should be simple enough.

Thanks in advance for help
 

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.
your ranges are not clear, i'm assuming you have the names listed in J7:J165

=Countif(J7:J165,"name") is that what you need? That will count how many times the word name appears in that range or is there another set of values alongside the word name name that need summed everytime name appears? if your typing the word name inside the cell, use double quotes around it "name" otherwise put your criteria into a cell and refer to the cell
 
Upvote 0
Is it possible to use these two functions together?

What I WANT to do is this:

=SUMIFS(COUNT(J7:J165),Name,$L7,Month,M$5)

But that syntax is obviously incorrect.

So, I'd like for the SUMIFs to use the first sum range, to simply count the number of rows I am adding together.

Example: My data is 100 rows, My Criteria_Name1 would be Name. So I'd like this formula to count how many times Name appears over that 100 rows.

Should be simple enough.

Thanks in advance for help

=COUNTIF(J7:J165,"Duke")

would count the occurrences of Duke in J7:J165.

=COUNTIFS(J7:J165,"Duke",K7:K165,"IBM")

would yield a count of the occurrences of Duke in J7:J165
while the corresponding values in K7:K165 equal IBM.
 
Upvote 0
=COUNTIF(J7:J165,"Duke")

would count the occurrences of Duke in J7:J165.

=COUNTIFS(J7:J165,"Duke",K7:K165,"IBM")

would yield a count of the occurrences of Duke in J7:J165
while the corresponding values in K7:K165 equal IBM.

COUNTIFS is what I need. Will use and report back!! Thanks!

edit: Like a charm!!!!!!!
 
Upvote 0
Hi Sir,

I Need one help regarding Countifs like count range is one column and criteria range is different column.

How Can I count, please let me know.

Thanks Regards,
VSSV Prasad.
 
Upvote 0
Hi Sir,

I Need one help regarding Countifs like count range is one column and criteria range is different column.

How Can I count, please let me know.

Thanks Regards,
VSSV Prasad.

Would you provide a very small sample and state the expected result from that sample?
 
Upvote 0
Hi, I have the same problem as vssvprasad and to better illustrate it, see the sample below:

[TABLE="width: 192"]
<tbody>[TR]
[TD="class: xl63, width: 64"]Item[/TD]
[TD="class: xl63, width: 64"]Criteria[/TD]
[TD="class: xl63, width: 64"]Values[/TD]
[/TR]
[TR]
[TD="class: xl63"]xxx[/TD]
[TD="class: xl63"]A[/TD]
[TD="class: xl63, align: right"]2[/TD]
[/TR]
[TR]
[TD="class: xl63"]xxx[/TD]
[TD="class: xl63"]B[/TD]
[TD="class: xl63, align: right"]1[/TD]
[/TR]
[TR]
[TD="class: xl63"]xxx[/TD]
[TD="class: xl63"]C[/TD]
[TD="class: xl63, align: right"]5[/TD]
[/TR]
[TR]
[TD="class: xl63"]xxx[/TD]
[TD="class: xl63"]A[/TD]
[TD="class: xl63, align: right"]5[/TD]
[/TR]
[TR]
[TD="class: xl63"]xxx[/TD]
[TD="class: xl63"]A[/TD]
[TD="class: xl63, align: right"]4[/TD]
[/TR]
[TR]
[TD="class: xl63"]xxx[/TD]
[TD="class: xl63"]B[/TD]
[TD="class: xl63, align: right"]2[/TD]
[/TR]
[TR]
[TD="class: xl63"]xxx[/TD]
[TD="class: xl63"]A[/TD]
[TD="class: xl63, align: right"]8[/TD]
[/TR]
[TR]
[TD="class: xl63"]xxx[/TD]
[TD="class: xl63"]C[/TD]
[TD="class: xl63, align: right"]9[/TD]
[/TR]
</tbody>[/TABLE]


Let's say I want to count how many values have the criteria "A", "B", "C" (with sumifs I can sum the values; what I want though is to count them).
Hope it's clear now...
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,291
Members
452,902
Latest member
Knuddeluff

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