IF Date Formula

broncos347

Active Member
Joined
Feb 16, 2005
Messages
291
Office Version
  1. 365
Platform
  1. Windows
I am trying to work on a spreadsheet where I have a column (col L) with a date in it and I am trying to use this to work out the current status of when something is due, my idea is to do something like this:

if L2<today() then "Overdue"

if L2<today()+7 then "within 7 days"

if L2<today()+30 then "within 3 months"

if L2<today()+180 then "within 6 months"

if L2<today()+365 then "within 12 months"

otherwise "longer than 12 months"

I have the following formula and it seems to work for up to the "within 3 months" but after that it just returns FALSE

=IF((L2<TODAY()),"Overdue",IF((L2<TODAY()+7),"within 7 days",IF((L2<TODAY()+30),"within 3 months",IF((L2<TODAY()+180)<"within 6 months",IF((L2<TODAY()+365),"within 12 months","longer than 12 months")))))

I am obviously missing something but I can't seem to work out what that is, any help would be appreciated.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Do you have Office 365 or Office 2019?
 
Upvote 0
Broncos347, Good morning.

Maybe a little mistake: Change < by , at "within 6 months"

=IF((L2<TODAY()),"Overdue",IF((L2<TODAY()+7),"within 7 days",IF((L2<TODAY()+30),"within 3 months",IF((L2<TODAY()+180) , "within 6 months",IF((L2<TODAY()+365),"within 12 months","longer than 12 months")))))

Probably exist another solution for you case without using IF function.

Have a nice day
 
Upvote 0
Solution
Jeez, that's embarrassing ? should have picked that one up, it works now, many thanks
 
Upvote 0
Broncos347,

Do not worry. It's just a small typo.

Be always welcome.

Glad to have helped.
 
Upvote 0

Forum statistics

Threads
1,214,813
Messages
6,121,706
Members
449,049
Latest member
THMarana

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