mattbnorris
New Member
- Joined
- Sep 17, 2019
- Messages
- 25
- Office Version
- 2016
- Platform
- Windows
Book1 | |||||||
---|---|---|---|---|---|---|---|
N | O | P | Q | R | |||
1 | Date | ID | Cost | Sorted | |||
2 | 17/11/1992 | #36454 | £34 | 10/08/1990 | |||
3 | 10/08/1990 | #36455 | £6,754 | 17/11/1992 | |||
4 | 10/03/2004 | #36456 | £453 | 07/01/1995 | |||
5 | 14/06/2017 | #36457 | £543 | 08/01/1996 | |||
6 | 03/01/2004 | #36458 | £8,788 | 03/01/2004 | |||
7 | 08/01/1996 | #36459 | £9,000 | 10/03/2004 | |||
8 | 11/05/2010 | #36460 | £9,000 | 18/05/2006 | |||
9 | 27/07/2006 | #36461 | £545 | 27/07/2006 | |||
10 | 18/05/2006 | #36462 | £55 | 11/05/2010 | |||
11 | 07/01/1995 | #36463 | £1,222 | 14/06/2017 | |||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
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