LVExcel
Board Regular
- Joined
- Nov 23, 2011
- Messages
- 59
- Office Version
- 365
- Platform
- Windows
Hi Everyone, I'm trying to get a cleaner formula to label any records shipped as backorder.
Here's my formula, but know there has to be something cleaner.
Formula: if Order# is the same as previous Order#, and ShipDate is not the same as previous ShipDate, then it's a Backorder. Also, if previous record was labeled "Backorder", and Order# is the same as previous Order#, and ShipDate is the same as previous ShipDate, then label it as previous record, "Backorder", if not label record as "Regular".
Of course, I first have to sort by Primary: Order#, Secondary: ShipDate
Thanks, I would appreciate any help you can provide.
Here's my formula, but know there has to be something cleaner.
Excel Formula:
=IF(AND(B2=B1,C2<>C1),"Backorder",IF(AND(A1="Backorder",B2=B1,C2=C1),A1,"Regular"))
Formula: if Order# is the same as previous Order#, and ShipDate is not the same as previous ShipDate, then it's a Backorder. Also, if previous record was labeled "Backorder", and Order# is the same as previous Order#, and ShipDate is the same as previous ShipDate, then label it as previous record, "Backorder", if not label record as "Regular".
Of course, I first have to sort by Primary: Order#, Secondary: ShipDate
Backorder | Order # | Ship Date |
Regular | 128141841 | 9/21/2017 |
Regular | 128141841 | 9/21/2017 |
Regular | 128141841 | 9/21/2017 |
Regular | 128142410 | 1/10/2017 |
Backorder | 128142410 | 3/1/2017 |
Backorder | 128142410 | 8/31/2017 |
Regular | 128142831 | 1/10/2017 |
Backorder | 128142831 | 8/31/2017 |
Regular | 128143223 | 1/10/2017 |
Backorder | 128143223 | 8/31/2017 |
Regular | 128143286 | 1/10/2017 |
Backorder | 128143286 | 8/31/2017 |
Regular | 128143478 | 1/10/2017 |
Backorder | 128143478 | 8/31/2017 |
Regular | 128143674 | 1/17/2017 |
Regular | 128143770 | 1/10/2017 |
Backorder | 128143770 | 8/31/2017 |
Thanks, I would appreciate any help you can provide.
Last edited by a moderator: