COUNTIF Function and Blank Date Cells

Atkey

New Member
Joined
Mar 13, 2024
Messages
6
Office Version
  1. 365
Platform
  1. Windows
I am attempting to generate a table that would show the number of dates in a column that are equal to or less that today' date. Some cells are blank and the formula is counting these blank cells. How would I get my formula to just count dates in the required range and ignore the blanks?

I am using =COUNTIF(M2,"<="TODAY())

Thanks in advance!
 
48 is the ASCII code for the number 0.
Your formula should actually be returning a 0 then, and not a blank. Maybe you have Conditional Formatting or some custom formatting hiding the 0s.

Try this formula:
Excel Formula:
=COUNTIFS(M:M,"<="&TODAY(),M:M,">0")
 
Upvote 0
Solution

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Thats fantastic, problem solved. Thank you all for you time and help.
 
Upvote 0
You are welcome.
Glad we were able to help.
 
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,328
Members
449,155
Latest member
ravioli44

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