Hi. I am looking for a formula that calculates the number of days in between orders for multiple accounts. If the order number is 1, it would be blank but would like a formula to return 9 for 4/10/2024 ABC and 5 for 4/15/2024 ABC. Thanks!
Date | Account Name | Order Number | Days in Between Orders |
4/1/2024 | ABC | 1 | - |
4/2/2024 | XYC | 1 | - |
4/2/2024 | AAA | 1 | |
4/10/2024 | ABC | 2 | |
4/11/2024 | LLL | 1 | |
4/15/2024 | ABC | 3 | |
4/17/2024 | ABC | 4 | |
4/20/2024 | XYC | 2 | |
4/30/2024 | XYC | 3 | |
5/1/2024 | LLL | 2 |