Error with checking current and past dates formula

BlissC

New Member
Joined
Aug 28, 2017
Messages
47
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi everyone,

I'm probably missing something blindingly obvious here, but I'm trying to use a formula to check whether a date's in the past or is a current or future date, but if there's no date recorded in the cell in question to return a blank cell in the cell containing the formula.

This is the formula I'm trying to use:
Code:
=IF($C13>=NOW(),"Current records",IF($C13<NOW(),"Past records",IF(ISBLANK($C13),"")))

It works in that it returns "past records" if the date's in the past and "current records" if the date's a current or future date, but if the cell's empty (i.e. doesn't contain a date), the formula's still returning "past records" even though there's no date. I've tried all sorts of variations, including using three IF statements to check for each condition but not only did that not work, but Excel kept telling me I had too many arguments. This one using ISBLANK with the IF statements is the only variation I've managed to get to work returning past or current records, but I can't get the 'no date' condition working.

I'd be very grateful if anyone could point me in the direction of where I'm going wrong.

Many thanks,

Bliss
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=IF($C13="","",IF($C13>=TODAY(),"Current records","Past records"))
 
Upvote 0
Solution
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

How about
Excel Formula:
=IF($C13="","",IF($C13>=TODAY(),"Current records","Past records"))
Thank you so much. That's working perfectly. (and yes, I'll update my account details).

Thanks again,

Bliss
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,183
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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