redspanna
Well-known Member
- Joined
- Jul 27, 2005
- Messages
- 1,604
- Office Version
- 365
- Platform
- Windows
Hey all
I have some simple data held in sheet1 (ColumnA) which is a list of dates
I simply want a UNIQUE list of MONTHS-YEARS for these dates and be able to sort them in date order. I have tried converting the given date into MMMM-YY date format (COLUMN B) but then the SORT(UNIQUE) sees them as a text value and sorts alphabetically and not in date order COLUMN D)...
Any ideas how to extract a MONTH-YY from a date then generate a UNIQUE list which is in date order?
Thanks in advance
I have some simple data held in sheet1 (ColumnA) which is a list of dates
Money.v2.xlsm | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Mar-22 | Dec-22 | ||||
2 | 04-Mar-22 | Mar-22 | Jun-22 | Jun-22 | ||
3 | 04-Jun-22 | Jun-22 | Dec-22 | Mar-21 | ||
4 | 04-Dec-22 | Dec-22 | Mar-21 | Mar-22 | ||
5 | 04-Mar-21 | Mar-21 | Sep-22 | Sep-22 | ||
6 | 04-Sep-22 | Sep-22 | ||||
7 | 12-Mar-22 | Mar-22 | ||||
8 | 14-Mar-22 | Mar-22 | ||||
9 | 08-Jun-22 | Jun-22 | ||||
10 | 06-Dec-22 | Dec-22 | ||||
11 | 16-Dec-22 | Dec-22 | ||||
12 | 11-Sep-22 | Sep-22 | ||||
Sheet3 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C1:C5 | C1 | =UNIQUE(B2:B12) |
D1:D5 | D1 | =SORT(UNIQUE(C1#)) |
B2:B12 | B2 | =TEXT(A2,"MMM-YY") |
Dynamic array formulas. |
I simply want a UNIQUE list of MONTHS-YEARS for these dates and be able to sort them in date order. I have tried converting the given date into MMMM-YY date format (COLUMN B) but then the SORT(UNIQUE) sees them as a text value and sorts alphabetically and not in date order COLUMN D)...
Any ideas how to extract a MONTH-YY from a date then generate a UNIQUE list which is in date order?
Thanks in advance