Calculation help (If And)

sfitzpat11

New Member
Joined
Jan 24, 2017
Messages
16
Hello,
I am looking for some assistance with a formula to calculate product shipment performance.
Cell A1 = Agreement days for all orders. Lets use 10 days
Cell B1 = Customer request. They might want it sooner or maybe a delayed shipment.
Cell C1 = Actual ship date.
You can see that there could be several situations but the B1 cell complicates this. Without B1 I could just look at the difference between A1 and C1. Examples of my challenge:
1) Customer request date is 12 days and the ship date was 12 days. This is on time but cannot use the 10 days per the agreement. Value of 0.
2) Customer request date is 8 days and the ship date was 10 days. While not meeting the request date the agreement date is still met. Value of 0.
3) Customer request date is 8 days and the ship date was 9 days. While not meeting the request date it was better than the agreement date. Value of -1.

Any help would be greatly appreciated.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
How do you get the number of days it took to ship if you have no column for the initial request date?
 
Upvote 0
Hi Scott,
Just a number. I have calculated the differences so just looking at how to use them. Could also start with
Cell A1 = Agreement days for all orders. Lets use 10 days.
Cell B1 = Customer Order date (start date)
Cell C1 = Agreement ship date (A1 + B1)
Cell D1 = Customer request date
Cell E1 = Actual ship date
 
Upvote 0
It seems that the only way you get a -1 is if the ship date is less than the agreement date. If that's the case, then in F2:
=-(E2<C2)

Copy down.


Excel 2010
ABCDEF
1Agreement DaysCustomer Order DateAgreement Ship DateCustomer Request DateActual Ship Date
2109/15/20179/25/20179/27/20179/27/20170
3109/15/20179/25/20179/23/20179/25/20170
4109/15/20179/25/20179/23/20179/24/2017-1
Sheet1
Cell Formulas
RangeFormula
C2=A2+B2
C3=A3+B3
C4=A4+B4
F2=-(E2)
F3=-(E3)
F4=-(E4)
 
Last edited:
Upvote 0
Thanks again. But I am looking for a formula that can manage any variable in columns D and E. In your formula if I change the ship date to 9/30 it does not tell me that I am 3 days late.
 
Upvote 0
OK, does this work for you?

=MIN(E2-D2,E2-C2)

Copy down.


Excel 2010
ABCDEF
1Agreement DaysCustomer Order DateAgreement Ship DateCustomer Request DateActual Ship Date
2109/15/20179/25/20179/27/20179/27/20170
3109/15/20179/25/20179/23/20179/25/20170
4109/15/20179/25/20179/23/20179/24/2017-1
Sheet1
Cell Formulas
RangeFormula
F2=MIN(E2-D2,E2-C2)
F3=MIN(E3-D3,E3-C3)
F4=MIN(E4-D4,E4-C4)
 
Upvote 0

Forum statistics

Threads
1,215,365
Messages
6,124,513
Members
449,168
Latest member
CheerfulWalker

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