|R2:R11||R2||=IFERROR(INDEX($N$2:$N$20, MATCH(ROWS($N$2:N2), COUNTIF($N$2:$N$20, "<="&$N$2:$N$20), 0)), "")|
|Press CTRL+SHIFT+ENTER to enter array formulas.|
Above is an example of my data.
The formula i'm using in Column R is able to sort the dates in Column N, but I want to also "expand" the function to the columns adjacent; so when the dates are sorted, the ID and Cost also follow with the correct date they are attached to. Is this possible to do using a formula? - I want to avoid VLOOKUP, as there are duplicate dates in the full dataset which would cause issues.
Ideally I would be able to paste the data into a section of the sheet and then, either on another sheet or next to the pasted data, the formulas will be able to sort everything in chronological date order.
Thanks for the help