Countif Formula

SCPbrito

Board Regular
Joined
Aug 1, 2024
Messages
53
Office Version
  1. 365
Platform
  1. Windows
I'm using
Rich (BB code):
=COUNTIF(NCMR!K:K, TEXT(TODAY(), "MM-DD-YYYY"))
to sum of the rows that have today's date. But its not summing up. Below is a screenshot of column K and date format.
 

Attachments

  • 2024-08-20_14-41-33.png
    2024-08-20_14-41-33.png
    2.4 KB · Views: 7

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
=COUNTIF(NCMR!K:K, TODAY())
if its a real date
 
Upvote 0
I did that and still showing 0. But it should be 1 based on the screenshot provided
 
Upvote 0
change the format to general and make sure all the dates change to a number
Book1
ABCD
18/19/2445523
28/20/24455241
38/21/2445525
Sheet1
Cell Formulas
RangeFormula
D2D2=COUNTIF(A1:A3,TODAY())
B1:B3B1=A1
 
Upvote 0
So I tried using
Rich (BB code):
=COUNTIF(NCMR!K:K, TODAY())
and
Rich (BB code):
=COUNTIF(NCMR!K:K, TEXT(TODAY(), "MM-DD-YYYY"))

and none of these are returning any values. Is there something that I'm missing?
 

Attachments

  • 2024-08-21_8-30-37.png
    2024-08-21_8-30-37.png
    7.9 KB · Views: 0
Upvote 0
MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
you have the time also in that column K
so try
=COUNTIFS(NCMR!K:K, ">="&TODAY(), NCMR!K:K,"<="&TODAY()+1)

whats the difference between open today and closed today

Testing NCMR.xlsx
ABC
1
2
3NCMR's Open Today1
Stats
Cell Formulas
RangeFormula
C3C3=COUNTIFS(NCMR!K:K, ">="&TODAY(), NCMR!K:K,"<="&TODAY()+1)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,907
Messages
6,175,301
Members
452,633
Latest member
DougMo

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