Solved

COUNTIF with dates

Posted on 2014-11-18
4
98 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.
0
Comment
Question by:smidy
  • 3
4 Comments
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40450820
Instead of =COUNTIF(DATA,"<B2"), use

=COUNTIF(DATA,"<" & B2)
0
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 500 total points
ID: 40450832
For your last paragraph,

=COUNTIF(DATA,"*FIT*")

And

=COUNTIF(DATA,"<>*FIT*")
0
 

Author Comment

by:smidy
ID: 40450833
I've tried the as well Phillip. Same 0 results. Thanks.

For the cells with or without "FIT", that worked, Thank you!
0
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40450839
I think you need to post your spreadsheet.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
Viewers will learn various types of data validation for different data types in Excel 2013.
Viewers will learn the basics about Excel 2013’s new Flash Fill feature.

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question