"Yes" or "No" Nested IF Statement with Specified Date

QBERT

New Member
Joined
Oct 13, 2004
Messages
40
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
  3. Mobile
Here is what I am trying to do:

=IF(AA5="","No",IF(AA5<=J5,"Yes","No")) - My lame attempt

Upload Days = AA5 (The number of days to acutally complete the project)
SLA Days = J5 (The number of days allowed to complete a project)
Project Uploaded Date = M5 (The date that the project was completed)
Report Date = B1 (The date of the report)
SLA Met = AC5 (The cell that I need an Equation that will display "Yes" or "No"

What I want is an IF Statement in cell AC5 that will:

- Display a blank cell if there is no data in AA5 (This means the project is in progress)
- Display a "Yes" or a "No" for the project if the Project Uploaded Report Date (M5) is equal to or earlier than the Report Date (B1)
- It should display "Yes" if the Upload Days - SLA Days is equal to or less than zero.
- It should display "No" if the Upload Days - SLA Days is greater than zero.

Thanks!

Update: If there is a "cute" way to have the report date always be today's date that will work too. I am trying to avoid as much manual typing as possible. Thanks!

Q
 
Last edited:

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
I am trying this right now and it looks good. Any confirmation?

=IF(AND(M5<=TODAY(),AB5<=0),"Yes",IF(AND(M5>TODAY(),AB5>0),"","No"))

I still don't know how to incorporate a "Blank" check at the beginning that states "IF M5 is Blank" return a value of Blank; not "Yes" or "No".
 
Last edited:
Upvote 0
=IF(M14="","",IF(AND(M14<=TODAY(),AB14<=0),"Yes",IF(AND(M14>TODAY(),M14<=TODAY(),AB14>0),"","No")))

Trying this now...not working exactly. The last half of the equation is tripping me up. I think the last logical argument needs to be broken up.

M14 = Upload Date
AB14 = SLA (Defined as the Upload Days - SLA Days)
 
Last edited:
Upvote 0
This is what I had in mind (unaware of your previous posts):
Code:
=IF(AA5="","",IF(M5<=B1,IF(J5>=AA5,"Yes", "No"),[I]Value if Project Uploaded Date > Report Date[/I]))
B1 can be replaced with TODAY()
You'll need to determine what happens if PUD > RD
 
Last edited:
Upvote 0
=IF(M14="","",IF(AND(M14<=TODAY(),AB14<=0),"Yes",IF(AND(M14<=TODAY(),AB14>0),"No",IF(M14>TODAY(),"","FALSE"))))

I ran out of arguments and used "False" at the End. Seems to be working and I am testing now.
 
Upvote 0
No need to supply a FALSE argument with an IF function. If you do: don't put it in double quotes.

In other words: =IF(A1 < B1,"A1 is smaller than B1") is equivalent to =IF(A1 < B1,"A1 is smaller than B1",FALSE)
 
Last edited:
Upvote 0
Shortened version of your formula in post #5, if you want FALSE (if M14 > 0) and not "FALSE"
Code:
=IF(M14="","",IF(M14<=TODAY(),IF(AB14<=0,"Yes","No")))
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,214
Members
449,074
Latest member
cancansova

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