We help IT Professionals succeed at work.

COUNTIF with dates

Gordon Smith
Gordon Smith asked
on
122 Views
Last Modified: 2014-12-03
Hi experts,

I really don't have much time to search for an answer here. Time crunch for my boss!
I'm trying to count a range of dates using COUNTIF. The issue is I'm using dynamic data from two cells with the =TODAY()-30 and =TODAY() functions.

Example: =COUNTIF(DATA,"<B2"), DATA being my named range, I get a 0 in the cell. IF I use =COUNTIF((DATA,"<10/19/2014") I'll get a good count.

I'd also like to count a range of cells with "FIT" in it and cells that do not contain the word "FIT" in them.
Comment
Watch Question

Phillip BurtonDirector, Practice Manager and Computing Consultant
Awarded 2014
Top Expert 2014

Commented:
Instead of =COUNTIF(DATA,"<B2"), use

=COUNTIF(DATA,"<" & B2)
Director, Practice Manager and Computing Consultant
Awarded 2014
Top Expert 2014
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
Gordon SmithInventory Control Coordinator

Author

Commented:
I've tried the as well Phillip. Same 0 results. Thanks.

For the cells with or without "FIT", that worked, Thank you!
Phillip BurtonDirector, Practice Manager and Computing Consultant
Awarded 2014
Top Expert 2014

Commented:
I think you need to post your spreadsheet.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.