So I have a table of values each made up of an odd number of rows for an invoice (used mod to filter out evens as don't care about those).
Each set of grouped values has the same invoice date, cost centre and account code and I know the number of rows for each invoice using a count.
I just need a way to call out the last row for each invoice, so rows 3 and 8 below? Not sure a multi row formula would work because there could be potentially lots of rows for each invoice.
| RecordID | value | Row count | Invoice date | cost centre | account code |
| 1 | -10 | 3 | 02/02/2019 | S300 | FZ345 |
| 2 | 10 | 3 | 02/02/2019 | S300 | FZ345 |
| 3 | 10 | 3 | 02/02/2019 | S300 | FZ345 |
| 4 | -20 | 5 | 01/01/2019 | S400 | AS123 |
| 5 | -20 | 5 | 01/01/2019 | S400 | AS123 |
| 6 | 20 | 5 | 01/01/2019 | S400 | AS123 |
| 7 | 20 | 5 | 01/01/2019 | S400 | AS123 |
| 8 | 20 | 5 | 01/01/2019 | S400 | AS123 |