Every day I send an open order report to my cust service group. To make it simpler to read and understand I make orders group orders into categories based on a ship date.
Older,
2 days late,
1 day late,
Today
Tomorrow
2 days out
Future
We only work M-F but there might be a Saturday or Sunday ship date entered so I have to factor the weekend in. I currently have a 'what if' statement for every day of the week, and just replace the statement based on what day it is.
I know I can string these all together, but there's got to be a simpler method. Would like one statement to cover all days of the week.
Suggestions?
Thanks!
Older,
2 days late,
1 day late,
Today
Tomorrow
2 days out
Future
We only work M-F but there might be a Saturday or Sunday ship date entered so I have to factor the weekend in. I currently have a 'what if' statement for every day of the week, and just replace the statement based on what day it is.
Monday | =IF(I2=TODAY(),"TODAY",IF(I2=TODAY()-3,"1 Day Late",IF(I2=TODAY()-2,"1 Day Late",IF(I2=TODAY()-1,"1 Day Late",IF(I2=TODAY()-4,"2 Days Late",IF(I2<TODAY(),"OLD",IF(I2=TODAY()+1,"Tomorrow",IF(I2=TODAY()+2,"2 Days Out","Future")))))))) |
Tuesday | =IF(I2=TODAY(),"TODAY",IF(I2=TODAY()-1,"1 Day Late",IF(I2=TODAY()-2,"2 Days Late",IF(I2=TODAY()-3,"2 Days Late",IF(I2=TODAY()-4,"2 Days Late",IF(I2<TODAY(),"OLD",IF(I2=TODAY()+1,"Tomorrow",IF(I2=TODAY()+2,"2 Days Out","Future")))))))) |
Wed | =IF(I2=TODAY(),"TODAY",IF(I2=TODAY()-1,"1 Day Late",IF(I2=TODAY()-2,"2 Days Late",IF(I2<TODAY(),"OLD",IF(I2=TODAY()+1,"Tomorrow",IF(I2=TODAY()+2,"Friday","Future")))))) |
Thurs | =IF(I2=TODAY(),"TODAY",IF(I2=TODAY()-1,"1 Day Late",IF(I2=TODAY()-2,"2 Days Late",IF(I2<TODAY(),"OLD",IF(I2=TODAY()+1,"Friday",IF(I2=TODAY()+2,"Monday",IF(I2=TODAY()+3,"Monday",IF(I2=TODAY()+4,"Monday","Future")))))))) |
Fri | =IF(I2=TODAY(),"TODAY",IF(I2=TODAY()-1,"1 Day Late",IF(I2=TODAY()-2,"2 Days Late",IF(I2<TODAY(),"OLD",IF(I2=TODAY()+1,"Monday",IF(I2=TODAY()+2,"Monday",IF(I2=TODAY()+3,"Monday",IF(I2=TODAY()+4,"Tuesday","Future")))))))) |
I know I can string these all together, but there's got to be a simpler method. Would like one statement to cover all days of the week.
Suggestions?
Thanks!