Need some Count If help....

SRGsMom

New Member
Joined
Jul 20, 2007
Messages
17
I have looked and looked for a resolution, this has to be simple and I hope I'm overthinking it.

I have used sumif, countif, sumproduct, etc....nothing works.


Column C has training names in it, values could be Overview, Claims, Enrollments, etc.

Column D has a Yes or No in it (meaning did the attendee show up or not)

I want to Count the Yes responses in column D, IF the training name is Overview in column C.


So...
Overview Attended -- Want a # Here (should be 3)

Column C Column D
Trg Name Attendeed
Overview Yes
Overview Yes
Claims Yes
Enrollments Yes
Overview No
Overview Yes
Claims Yes

(I previewed the post and I see my "example" didn't work out so well, hope that isn't too confusing)

Your help would be GREATLY appreciated! I do know that on some array formulas you have to do the Control+Shift+Enter, and I'm still not getting it right.
 
I redid the formula with the suggestion above putting Overview and Yes in seperate cells, both times, when it complains, it highlights the comma between the C argument and D argument.

So I took the comma out, tried again and it gives me the #Value! error.

New Formula: =SUMPRODUCT(--C1:C5000=G3)--(D1:D5000=H2)
Also Tried: =SUMPRODUCT(--C1:C5000="Overview")--(D1:D5000="Yes")
Depending on your location your regional settings may use a semi-colon instead of a comma.

See taurean's reply.
 
Upvote 0

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Still not getting it -- I think I need to give it a rest!

Using this: =SUMPRODUCT(--(C9:C5000="Overview")--(D9:D5000="Yes"))

It WILL NOT take a , or ;

Now I get a total of 142, there are only 89 records in the spreadsheet right now.

Of those, only 59 have attended the Overview Training. 15 have attended the claims training, and 15 registered attendees didn't show up at all.
 
Upvote 0
Go to Start >> Settings >> Control Panel Then choose "Regional and Language options" and see what settings are applied.
 
Upvote 0
It's using English (US)
Does one of these array entered** formulas give you the correct result?

=SUM(IF(C9:C5000="Overview",IF(D9:D5000="Yes",1)))

=SUM(IF(C9:C5000="Overview";IF(D9:D5000="Yes";1)))

=SUM((C9:C5000="Overview")*(D9:D5000="Yes"))

** array formulas need to be entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER).
Hold down both the CTRL key and the SHIFT key
then hit ENTER.
 
Upvote 0
Did you enter the formula exactly as shown? The -- is two consecutive minus signs.
 
Upvote 0
I have entered this:

=SUMPRODUCT(--(C9:C5000="Overview")--(D9:D5000="Yes")) -- which returns 142, the wrong value


=SUMPRODUCT(--(C9:C5000="Overview"),--(D9:D5000="Yes"))
=SUMPRODUCT(--(C9:C5000="Overview");--(D9:D5000="Yes"))

Both of which Excel didn't like.
 
Upvote 0
I have entered this:

=SUMPRODUCT(--(C9:C5000="Overview")--(D9:D5000="Yes")) -- which returns 142, the wrong value


=SUMPRODUCT(--(C9:C5000="Overview"),--(D9:D5000="Yes"))
=SUMPRODUCT(--(C9:C5000="Overview");--(D9:D5000="Yes"))

Both of which Excel didn't like.
Did you try any of the array formulas I suggested in reply #15?
 
Upvote 0

Forum statistics

Threads
1,224,542
Messages
6,179,421
Members
452,913
Latest member
JWD210

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