One more formula

dragonmouse

Board Regular
Joined
May 14, 2008
Messages
131
Office Version
  1. 2016
Platform
  1. 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"
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
=if(ad4<>"","deferred",if(ae4<>"","removed",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)),"")))
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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