Count number of dates with 60 days of today

jonisanders

New Member
Joined
May 15, 2009
Messages
31
I want a formula that will count the number of days that are less that or equal to today plus 60 days.
I have tried =SUMPRODUCT(a1:a10,"<="&TODAY()+60) (this one gives me an error) and =countif(a1:a10,"<="&TODAY()+60) (this one give me 0). Any suggestions?
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I want a formula that will count the number of days that are less that or equal to today plus 60 days.
I have tried =SUMPRODUCT(a1:a10,"<="&TODAY()+60) (this one gives me an error) and =countif(a1:a10,"<="&TODAY()+60) (this one give me 0). Any suggestions?
That COUNTIF formula is syntactically correct.

So, either your dates aren't true dates or there are no dates that meet the condition.

Try this test formula.

Find a date that meets the condition. Let's assume that date is in cell A1.

What result do you get with this formula:

=ISNUMBER(A1)

If the cell contains a true date the result of that formula will be TRUE.
 
Upvote 0
Thank you so much for the reply. I took your suggestion and reformated the range to insure they were all dates and reinstated the CountIF equation. It worked great. Thanks so much for helping me get there.
 
Upvote 0
Thank you so much for the reply. I took your suggestion and reformated the range to insure they were all dates and reinstated the CountIF equation. It worked great. Thanks so much for helping me get there.
You're welcome. Thanks for the feedback! :cool:
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,730
Members
452,939
Latest member
WCrawford

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