I have a fairly large date set with thousands of rows. Some dates have many records/rows, some dates have none, and some dates have a single row. What I am trying to do is extract a unique month end date for every date that is in the data set. I then want to make that unique data set a table in order to add to the data model.
C:C and E:E are the same except for one is a table. As you can see, once it converts to a table it loses the uniqueness and wants to show the month end for every single record.
How can I make this work so that it looks like G:G and will dynamically expand as the original daily data set grows?
C:C and E:E are the same except for one is a table. As you can see, once it converts to a table it loses the uniqueness and wants to show the month end for every single record.
Monarch - data v2.xlsx | |||||||||
---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | |||
1 | Date | MonthEndDate | MonthEndDate | MonthEndDate | |||||
2 | 3/30/2023 | 3/31/2023 | 3/31/2023 | 3/31/2023 | |||||
3 | 3/31/2023 | 4/30/2023 | 3/31/2023 | 4/30/2023 | |||||
4 | 4/1/2023 | 5/31/2023 | 4/30/2023 | 5/31/2023 | |||||
5 | 4/1/2023 | 4/30/2023 | |||||||
6 | 4/2/2023 | 4/30/2023 | |||||||
7 | 5/6/2023 | 5/31/2023 | |||||||
8 | 5/6/2023 | 5/31/2023 | |||||||
9 | 5/6/2023 | 5/31/2023 | |||||||
10 | 5/6/2023 | 5/31/2023 | |||||||
Sheet2 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
C2:C4 | C2 | =UNIQUE(EOMONTH(TEXT($A2:$A10,"M/D/YYYY"),0)) |
G2:G4 | G2 | =C2 |
E2:E10 | E2 | =@UNIQUE(EOMONTH(TEXT($A2:$A10,"M/D/YYYY"),0)) |
Dynamic array formulas. |
How can I make this work so that it looks like G:G and will dynamically expand as the original daily data set grows?