Counting dates past X

Kerry Newman

New Member
Joined
Feb 23, 2018
Messages
19
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I am trying to count the dates AFTER 1/7/2018
The first formula is "= to 1/7/218" and gives me a 1 which is correct

The next three do nothing, gives me a 0... not correct.
What am I doing wrong? in Excel 2016....


COLUMN C
Date1COUNTIF($C$5:$C$12,"="&$C$7)
12/24/20170COUNTIF($C$5:$C$12,"=>"&$C$7)
12/31/20170COUNTIF($C$5:$C$12,">="&$C$7)
1/7/20180COUNTIF($C$5:$C$12,">"&$C$7)
1/14/2018
1/21/2018
1/28/2018
2/4/2018
2/11/2018

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Kerry Newman, Good afternoon.

Your formulas:

a) COUNTIF($C$5:$C$12,"="&$C$7) --> CORRECT --> Result must be 1

b) COUNTIF($C$5:$C$12,"=>"&$C$7) --> WRONG SINTAXE

c) COUNTIF($C$5:$C$12,">="&$C$7) --> CORRECT --> Result must be 6

d) COUNTIF($C$5:$C$12,">"&$C$7) --> CORRECT --> Result must be 5

Verify your dates at C5:C12 and C7.

Are they REAL dates or maybe some TEXT dates there?

I hope it helps.
 
Upvote 0
Kerry Newman, Good afternoon.

Your formulas:

a) COUNTIF($C$5:$C$12,"="&$C$7) --> CORRECT --> Result must be 1

b) COUNTIF($C$5:$C$12,"=>"&$C$7) --> WRONG SINTAXE

c) COUNTIF($C$5:$C$12,">="&$C$7) --> CORRECT --> Result must be 6

d) COUNTIF($C$5:$C$12,">"&$C$7) --> CORRECT --> Result must be 5

Verify your dates at C5:C12 and C7.

Are they REAL dates or maybe some TEXT dates there?

I hope it helps.

Thanks for the input, the dates are formatted as dates. and c & d above bring back 0
What do you think is going on?
 
Upvote 0
Kerry Newman,

"...the dates are formatted as dates..."
They are formatted as DATES....BUT..Are they REAL DATES for Excel???

Take a little test:
Choose any cell. e.g. G5

G5 --> =ISNUMBER(C5)
Copy it down to G12

ALL the answers must be TRUE.

It will confirm IF all your dates are REAL DATES for Excel.

I will wait for your answer.
 
Upvote 0
Kerry Newman,

"...the dates are formatted as dates..."
They are formatted as DATES....BUT..Are they REAL DATES for Excel???

Take a little test:
Choose any cell. e.g. G5

G5 --> =ISNUMBER(C5)
Copy it down to G12

ALL the answers must be TRUE.

It will confirm IF all your dates are REAL DATES for Excel.

I will wait for your answer.

Very Nice, they were not dates. They were formatted as dates but when I clicked in the cell and hit enter on each cell, the formulas worked.
Thanks a ton!
Kerry
 
Upvote 0

Forum statistics

Threads
1,216,101
Messages
6,128,844
Members
449,471
Latest member
lachbee

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