legalhustler
Well-known Member
- Joined
- Jun 5, 2014
- Messages
- 1,214
- Office Version
- 365
- Platform
- Windows
Hi,
I'm looking for a dynamic spilled array formula (and/or even a Power Query solution) to extract unique ID records based on the Date column.
The first two records for ID 123 would be considered one unique record because they ordered milk on 2/5/24 and received it on 2/7/24 (the subsequent date is always considered the received date), a complete order. The last two records for ID 123 would be considered another unique record because ID 123 ordered milk again on 2/10/24 and received it on 2/11/24. Eggs and Apple for ID 123 and 777, respectively, were ordered but not received so they would also be considered unique records (just not a complete order).
Here is what the result should look like:
I'm looking for a dynamic spilled array formula (and/or even a Power Query solution) to extract unique ID records based on the Date column.
The first two records for ID 123 would be considered one unique record because they ordered milk on 2/5/24 and received it on 2/7/24 (the subsequent date is always considered the received date), a complete order. The last two records for ID 123 would be considered another unique record because ID 123 ordered milk again on 2/10/24 and received it on 2/11/24. Eggs and Apple for ID 123 and 777, respectively, were ordered but not received so they would also be considered unique records (just not a complete order).
Date | ID | Amount | Food |
2/5/24 | 123 | $100 | Milk |
2/7/24 | 123 | $100 | Milk |
2/5/24 | 123 | $100 | Eggs |
2/5/24 | 888 | $50 | Cookies |
2/6/24 | 888 | $50 | Cookies |
2/12/24 | 777 | $100 | Apple |
2/10/24 | 123 | $100 | Milk |
2/11/24 | 123 | $100 | Milk |
Here is what the result should look like:
ID | Amount | Food |
123 | $100 | Milk |
123 | $100 | Eggs |
888 | $50 | Cookies |
123 | $100 | Milk |
777 | $75 | Apple |