I’m working with a spreadsheet that contains customer information, including names, weights, and booking dates. My goal is to create a daily manifest for certain dates that can be accessed by multiple users on a mobile app.
Customers are divided into groups (loads 1, 2, 3, etc.), with each load containing several customers and differing numbers of passengers. I need a formula that can locate the 1st, 2nd, or Nth entry that corresponds to the date in cell K3 and the load number found in cells K5, K13, and so on, and return the corresponding record from the list.
As a novice attempting to combine formulas through experimentation, I’ve tried using index matches, but I’ve encountered differences in behavior compared to Excel.
Currently, I’m using:
=ARRAYFORMULA(INDEX($C:$C,SMALL(IF($A:A=$K$3,IF($I:$I=$K$5,ROW($I:$I)-ROW(INDEX($I:$I,1,1))+1)),1)))
This formula gets the first occurrence, and I modify the +1 for the subsequent entries. However, it only finds the initial instance where the date matches the load number, and the following rows are simply +1, +2, etc., from the first match.
Additionally, I want to note that the input sheet is populated at the time of booking and can be sorted based on date, weight, and other criteria, so maintaining a fixed order by date and load number isn’t feasible.