Forum Discussion
Jose Alas-Ruiz
Mar 06, 2018Copper Contributor
How to setup an IF function to determine Delivery date is GOOD/NO GOOD
I want to use the IF function to determine if the "delivery date" on cell "B" surpassed the "ship date" on cell "A" by say 1 day, then it's Good, if not, then it's No Good. In some instances, the de...
Haytham Amairah
Mar 06, 2018Silver Contributor
Jose,
You can do it by this simple algorithm:
- Subtract the Delivery Date from Ship Date.
- Check if the subtraction value is greater than 1 using this comparative operator ">".
- Use the above logical test in IF function to return NO GOOD if the logical test is TRUE, and GOOD if the logical test is FALSE.
You can translate the above in this formula:
=IF(B2-A2>1,"No Good","Good")
Please find the attached file.
- Sima5Jul 28, 2021Copper Contributor
Haytham Amairah I have a question, how would you modify this formula if you have multiple carriers in one workbook? I have 4 different carriers all lumped into one workbook but what to find the percentages for each.
- Jose Alas-RuizMar 06, 2018Copper Contributor
Hi Haytham,
Thanks so much for the quick response. It worked beautifully.
Jose,