Double "IF" Formula

Utradeshow

Well-known Member
Joined
Apr 26, 2004
Messages
807
Office Version
  1. 365
Hi Guy's

I have this formula that works good when I have a date in cell T27. Is there a way to also have it look at T27 and if the value is "___/___/___" then the result would be "Please confirm within 96 hours"

=IF(AA15="TRANSPORTATION PROPOSAL","(Please Confirm Order on or by '"&TEXT(T27-4,"mm/dd/yy")&"')","")

Thank you
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
=IF(T27="___/___/___","Please confirm within 96 hours",IF(AA15="TRANSPORTATION PROPOSAL","(Please Confirm Order on or by '"&TEXT(T27-4,"mm/dd/yy")&"')",""))
 
Upvote 0
Hi Guy's

I have this formula that works good when I have a date in cell T27. Is there a way to also have it look at T27 and if the value is "___/___/___" then the result would be "Please confirm within 96 hours"

=IF(AA15="TRANSPORTATION PROPOSAL","(Please Confirm Order on or by '"&TEXT(T27-4,"mm/dd/yy")&"')","")

Thank you

Do you mean you have the literal string, ___/___/___, in the cell? Or, does that mean the cell is empty?
 
Upvote 0
=IF(T27="___/___/___","Please confirm within 96 hours",IF(AA15="TRANSPORTATION PROPOSAL","(Please Confirm Order on or by '"&TEXT(T27-4,"mm/dd/yy")&"')",""))

Awesome!! Dang I was trying so many way trying to get it. Thank you :) Works great
 
Upvote 0
Do you mean you have the literal string, ___/___/___, in the cell? Or, does that mean the cell is empty?

Hi Bill,

The cell's value is "___/___/___"

But now i have trouble, Is there a way to have the date formula to AVOID weekends? If the result returns a date that is Saturday, it would kick it back to Friday?

=IF(T27="___/___/___","Please confirm order 96 hours prior to loading",IF(AA15="TRANSPORTATION PROPOSAL","(Please Confirm Order on or by '"&TEXT(T27-4,"mm/dd/yy")&"')",""))
 
Upvote 0
Hi Bill,

The cell's value is "___/___/___"

But now i have trouble, Is there a way to have the date formula to AVOID weekends? If the result returns a date that is Saturday, it would kick it back to Friday?

=IF(T27="___/___/___","Please confirm order 96 hours prior to loading",IF(AA15="TRANSPORTATION PROPOSAL","(Please Confirm Order on or by '"&TEXT(T27-4,"mm/dd/yy")&"')",""))
What is the significance of the -4 in the formula:

TEXT(T27-4
 
Upvote 0
What is the significance of the -4 in the formula:

TEXT(T27-4

4 days prior to the value (Date) of cell T27

So right now if the value of cell T27 is 05/25/11 the result of the formula would be 05/21/11 which is a Saturday. I would like the result to then be 5/20/11
 
Upvote 0
4 days prior to the value (Date) of cell T27

So right now if the value of cell T27 is 05/25/11 the result of the formula would be 05/21/11 which is a Saturday. I would like the result to then be 5/20/11

I found this formula that I think you guy's actually did whick works great, If I could just incorporate it into my existing formula

=T27-4+LOOKUP(WEEKDAY(T27-4),{1;2;7},{-2;0;-1})
 
Upvote 0
Somehow I think Idid it....

=IF(T27="___/___/___","Please confirm order 96 hours prior to loading",IF(AA15="TRANSPORTATION PROPOSAL","(Please Confirm Order on or by '"&TEXT(T27-4+LOOKUP(WEEKDAY(T27-4),{1;2;7},{-2;0;-1}),"mm/dd/yy")&"')",""))

Seems to work great
 
Upvote 0
Somehow I think Idid it....

=IF(T27="___/___/___","Please confirm order 96 hours prior to loading",IF(AA15="TRANSPORTATION PROPOSAL","(Please Confirm Order on or by '"&TEXT(T27-4+LOOKUP(WEEKDAY(T27-4),{1;2;7},{-2;0;-1}),"mm/dd/yy")&"')",""))

Seems to work great
Good deal. Thanks for the feedback! :cool:
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,908
Members
452,949
Latest member
beartooth91

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