Date formula with multiple conditions and nested ifs

Vbanoob98

Board Regular
Joined
Sep 13, 2019
Messages
128
Hi,

I need a formula that tells me 4 options based on a date in C3:

Overdue= the date has passed
Approaching= date is 5 days away
Pending= normal status
Complete: if A1 is = Yes then Complete

What I currently have is this :

=If(TODAY()-C3<=5, "Aproaching","Pending")

I'd be really grateful for any help :) thanks!
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
The new formula I have is:

=If(A1=1,"complete",if(today()-c3<=5,"approaching",if(c3>today(),"Overdue","Pending")))

Everything works except for the Overdue part, it gets stuck at approaching
 
Upvote 0
Test for C3>today before today-C3
 
Upvote 0
Contradiction here, so you need to sort it out

if A1 is = Yes then Complete
If(A1=1,"complete"


Try (untested)
=IF(A1=1,"Complete",IF(AND(C3>0,C3<=TODAY()),"Overdue",IF(AND(C3>0,C3<=TODAY()+5),"Approaching","Pending")))
 
Upvote 0
I entered C3 > 0 into the formula so the check is only performed if a value is present in C3, which presumably would be a date and nothing else.
If C3 is left blank and not checked then the wrong error may result.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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