Should I use an If Statment

Copper Contributor

Hello, I am not very good at excel.  I am tasked with trying  to figure out if DTs were released in sufficient lead time, they should be released 2 days before the shipping date.  I have the ship date and when the DT was created.  I know it may seem simple but I need help

 

Total DelOrder qtyDT ShipUS Canc.US HdrDT CreateUS Ship MShip Week
1501509/8/2023 6/27/20238/30/20236/27/2023Prior to Week 35
1501509/8/2023 6/27/20238/30/20236/27/2023Prior to Week 35
4684689/8/2023 7/4/20238/30/20237/4/2023Prior to Week 35
17178/18/2023 8/27/20238/15/20238/1/2023Prior to Week 35
668/16/2023 8/2/20238/16/20238/16/2023Prior to Week 35
29299/7/20239/14/20239/7/20238/29/20238/21/2023Prior to Week 35
41419/7/20239/14/20239/7/20238/29/20238/21/2023Prior to Week 35
80809/7/20239/14/20239/7/20238/29/20238/21/2023Prior to Week 35
20209/18/20239/22/20238/3/20238/30/20239/18/2023Week 38
12129/18/20239/22/20238/3/20238/30/20239/18/2023Week 38
10109/18/20239/22/20238/3/20238/30/20239/18/2023Week 38
30309/18/20239/22/20238/3/20238/30/20239/18/2023Week 38
22229/18/20239/22/20238/3/20238/30/20239/18/2023Week 38

 

1 Reply

Hi @Ivyk_P1975,

you can use a formula to check if the DTs were released with sufficient lead time:

1. In an empty column, where you want to display the result (for example: in column L), enter the following formula in the first cell (for example L2):

 

=IF(D2 - H2 >= 2, "Yes", "No")

 

- `D2` represents the "DT Ship" date for the current row.
- `H2` represents the "US Ship" date for the current row.
- This formula calculates the difference in days between the "DT Ship" date and the "US Ship" date.

2. Press "Enter" to apply the formula. The cell will display "Yes" if the DTs were released with at least 2 days of lead time, and "No" if not.

3. Copy this formula down to apply it to all rows in your dataset. Excel will calculate the lead time for each row.

The result will indicate "Yes" for rows where the DTs were released with sufficient lead time and "No" for rows where they were not.

 

Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.


If the post was useful in other ways, please consider giving it Like.


Kindest regards,


Leon Pavesic