ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Countif function (https://www.excelbanter.com/excel-worksheet-functions/253790-countif-function.html)

Bob

Countif function
 
Good morning, I have a column with dates (MM/DD/YY) and I'm trying to write a
formula that will look at this column and tell me which ones are older than
today. I tried =COUNTIF(B11:B396, "<TODAY()") which did not work. The only
way I could get a result was =COUNTIF(B11:B396, "<01/19/10"). The problem
with this is you have to enter today's date each time you open the file. Is
there not an easier solution?

Ms-Exl-Learner

Countif function
 
Use your formula like this...

=COUNTIF(B11:B396,"<"&TODAY())

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Bob" wrote:

Good morning, I have a column with dates (MM/DD/YY) and I'm trying to write a
formula that will look at this column and tell me which ones are older than
today. I tried =COUNTIF(B11:B396, "<TODAY()") which did not work. The only
way I could get a result was =COUNTIF(B11:B396, "<01/19/10"). The problem
with this is you have to enter today's date each time you open the file. Is
there not an easier solution?


Per Jessen

Countif function
 
You are close:

=COUNTIF(B11:B396, "<" &TODAY())

Regards,
Per

"Bob" skrev i meddelelsen
...
Good morning, I have a column with dates (MM/DD/YY) and I'm trying to
write a
formula that will look at this column and tell me which ones are older
than
today. I tried =COUNTIF(B11:B396, "<TODAY()") which did not work. The only
way I could get a result was =COUNTIF(B11:B396, "<01/19/10"). The problem
with this is you have to enter today's date each time you open the file.
Is
there not an easier solution?



Don Guillett

Countif function
 
=COUNTIF(A11:A396, "<"&TODAY())

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Bob" wrote in message
...
Good morning, I have a column with dates (MM/DD/YY) and I'm trying to
write a
formula that will look at this column and tell me which ones are older
than
today. I tried =COUNTIF(B11:B396, "<TODAY()") which did not work. The only
way I could get a result was =COUNTIF(B11:B396, "<01/19/10"). The problem
with this is you have to enter today's date each time you open the file.
Is
there not an easier solution?



David Biddulph[_2_]

Countif function
 
=COUNTIF(B11:B396, "<TODAY()") is looking for the text string "<TODAY()"
Try =COUNTIF(B11:B396, "<"&TODAY())
--
David Biddulph

"Bob" wrote in message
...
Good morning, I have a column with dates (MM/DD/YY) and I'm trying to
write a
formula that will look at this column and tell me which ones are older
than
today. I tried =COUNTIF(B11:B396, "<TODAY()") which did not work. The only
way I could get a result was =COUNTIF(B11:B396, "<01/19/10"). The problem
with this is you have to enter today's date each time you open the file.
Is
there not an easier solution?





All times are GMT +1. The time now is 12:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com