COUNTIF Function and Blank Date Cells

Atkey

New Member
Joined
Mar 13, 2024
Messages
8
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

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
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,224,825
Messages
6,181,191
Members
453,021
Latest member
pingpong7117

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