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

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
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,214,414
Messages
6,119,373
Members
448,888
Latest member
Arle8907

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