COUNT IF equation

ved2011

New Member
Joined
May 19, 2011
Messages
9
Hello Again,

I would like to do a count if equation based on a date, originally the count if formula was

=COUNTIF(TCC!K3:K500,"0")

which was working, now I am trying to make that contingent on the date with,

=COUNTIF(--(TCC!A3:A500=DATEVALUE("5/3/2011")),(TCC!G3:G500,"0"))

but is not taking, this set up worked in two previous equations but those were COUNTA and SUMPRODUCT functions. What should i change for the Countif?

Thank you
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hello Again,

I would like to do a count if equation based on a date, originally the count if formula was

=COUNTIF(TCC!K3:K500,"0")

which was working, now I am trying to make that contingent on the date with,

=COUNTIF(--(TCC!A3:A500=DATEVALUE("5/3/2011")),(TCC!G3:G500,"0"))

but is not taking, this set up worked in two previous equations but those were COUNTA and SUMPRODUCT functions. What should i change for the Countif?

Thank you
If you're using Excel 2007 or later...

It's better if you use a cells to hold the criteria:
  • A1 = 5/3/2011
  • B1 = 0
Then the formula becomes:

=COUNTIFS(TCC!A3:A500,A1,TCC!G3:G500,B1)
 
Upvote 0

Forum statistics

Threads
1,224,605
Messages
6,179,860
Members
452,948
Latest member
UsmanAli786

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