IF, OR, AND formula required

aryanaveen

Board Regular
Joined
Jan 5, 2015
Messages
104
Hi All,

Can you please help me with a formula to sort out the below scenario

I am looking for a formula in Column E which will help me to check if the product is "On track" or "Off track" based on below conditions and max days

Timelines for the stages

Type B Product
1684505777106.png


Type A Product

1684505815094.png


If the product type is B then below rule

if the order is more than 30 days from current date and the stage is at approval then "off track", if not "On Track"
if the order is more than 45 days from current date and the stage is at Prepare then "off track", if not "On Track"
if the order is more than 60 days from current date and the stage is at QC then "off track", if not "On Track"
if the order is more than 75 days from current date and the stage is at Final QC then "off track", if not "On Track"
if the order is more than 85 days from current date and the stage is at Packing then "off track", if not "On Track"
if the order is more than 90 days from current date and the stage is at Delivered then "off track", if not "On Track"

If the product type is A then below rule
if the order is more than 90 days from current date and the stage is at approval then "off track", if not "On Track"
if the order is more than 150 days from current date and the stage is at Prepare then "off track", if not "On Track"
if the order is more than 180 days from current date and the stage is at QC then "off track", if not "On Track"
if the order is more than 240 days from current date and the stage is at Final QC then "off track", if not "On Track"
if the order is more than 330 days from current date and the stage is at Packing then "off track", if not "On Track"
if the order is more than 360 days from current date and the stage is at Delivered then "off track", if not "On Track"


1684505598096.png
 

Attachments

  • 1684505790156.png
    1684505790156.png
    6.9 KB · Views: 5

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
MrExcelPlayground17.xlsx
ABCDEFGHI
1NameDateTypeStageStatusStepType AType B
2Soap12/31/2022AQCOn TrackApproval9030
3Face wash12/31/2022BFinal QCoff trackPrepare15045
4Shampoo3/31/2022AApprovaloff trackQC18060
5Hand wash10/18/2022BPrepareoff trackFinal QC24075
6Sanitizer12/31/2022BQCoff trackPacking33085
7Deo10/31/2022BFinal QCoff trackDelivered36090
8Perfume8/31/2022APackingOn Track
9Napkins3/31/2023ADeliveredOn Track
Sheet16
Cell Formulas
RangeFormula
E2:E9E2=IF(TODAY()-B2>VLOOKUP(D2,$G$2:$I$7,IF(C2="A",2,3),FALSE),"off track","On Track")
 
Upvote 1

Forum statistics

Threads
1,215,214
Messages
6,123,661
Members
449,114
Latest member
aides

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