Need help with IFs ANDs and Dates!!

MrCrimmy

New Member
Joined
Sep 26, 2014
Messages
14
Hello Everyone!!

I was hoping I might get some help regarding an issue I'm having with IF statements as a function of date.

So I'm working on a project reporting tool that has all of the projects for my department and their status, be it Ready, Not yet due, due withing two weeks or late. The function I've been using is as follows:

=IF(AND(ISBLANK(E16)=FALSE,ISBLANK(F16)=FALSE,ISBLANK(G16)=TRUE,$A$10>F16),"Late",IF(ISBLANK(G16)=FALSE,"Ready",IF(AND(ISBLANK(E16)=FALSE,(F16>($A$10+14))=FALSE,ISBLANK(G16)=TRUE,($A$10+14)>F16),"Due within two weeks","Not yet due")))

Where

A10 = todays date
E16 = start date
F16 = due date
G16 = completion date

I need to add in more arguments and I really don't know how, my end goal is to have a "Ready", "due immediately" (within one week) "due within two weeks" ( < 14 days from due date), "due within a month" (<30 days to due date) "not yet due" (> 30 days to due date) and "Late".

I have no idea how to put in so many arguments and I am very lost.

If anyone could help I would greatly appreciate it.

Kind Regards,

Bryan :)
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
It looks like you may be overcomplicating your IF statement, try this and let me know which if any scenarios it doesn't work:

=IF(ISBLANK(G10),IF(A10>F10,"Late",IF(F10-A10>30,"Not Due Yet",IF(F10-A10>14,"due in Month",IF(F10-A10>7,"due in 2 weeks","Due Immediately")))),"Ready")
 
Upvote 0
To allow for blanks in column F:

=IF(ISNUMBER(G16),"Ready",IF(ISNUMBER(F16),IF(F16<$A$10,"Late",IF(F16<($A$10+7),"Due immediately",IF(F16<($A$10+14),"Due within two weeks",IF(F16<($A$10+30),"Due within one month","Not yet due")))),""))
 
Upvote 0
Thank you both very much, they both work perfectly!

I really appreciate your help on this! Have a great day!!
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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