dragonmouse
Board Regular
- Joined
- May 14, 2008
- Messages
- 131
- Office Version
- 2016
- Platform
- Windows
I want to add two more layers to the formula. If the cell is deferred or has a "date deferred" I'd like the formula to return DEFERRED or else just return the "date" like it normally does or if the item has been removed it returns removed .
What's actually going on is we have to perform "preventative maintenance" on multiple products. They have differing schedules which may be every 7 days, every 14 days, every 6 months or a combination of any two schedules. The formula below returns the next date due and it works PERFECTLY but I forgot one thing. If the product has a problem that is going to require a long lead time to receive a part to fix it the "preventative maintenance" may be deferred until the part is received. I would like one more layer to the formula that if is sees a date in column AD to return the word DEFERRED instead of a "Date" and if it sees a date in column AE to return (REMOVED) instead of a "Date"
=IF(OR(L4=7,O4=14,R4=28,U4=56,X4=168,AA4=336),IF(ISBLANK(L4)*(O4)*(R4)*(U4)*(X4)*(AA4),"",MIN(N4,Q4,T4,W4,Z4,AC4)),"")
Returns the next date due
OR "Deferred"
OR "Removed"
What's actually going on is we have to perform "preventative maintenance" on multiple products. They have differing schedules which may be every 7 days, every 14 days, every 6 months or a combination of any two schedules. The formula below returns the next date due and it works PERFECTLY but I forgot one thing. If the product has a problem that is going to require a long lead time to receive a part to fix it the "preventative maintenance" may be deferred until the part is received. I would like one more layer to the formula that if is sees a date in column AD to return the word DEFERRED instead of a "Date" and if it sees a date in column AE to return (REMOVED) instead of a "Date"
=IF(OR(L4=7,O4=14,R4=28,U4=56,X4=168,AA4=336),IF(ISBLANK(L4)*(O4)*(R4)*(U4)*(X4)*(AA4),"",MIN(N4,Q4,T4,W4,Z4,AC4)),"")
Returns the next date due
OR "Deferred"
OR "Removed"