Extract unique month end dates from range of daily dates?

pholt33

Board Regular
Joined
Jan 4, 2005
Messages
206
Office Version
  1. 365
Platform
  1. Windows
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.

Monarch - data v2.xlsx
ABCDEFG
1DateMonthEndDateMonthEndDateMonthEndDate
23/30/20233/31/20233/31/20233/31/2023
33/31/20234/30/20233/31/20234/30/2023
44/1/20235/31/20234/30/20235/31/2023
54/1/20234/30/2023
64/2/20234/30/2023
75/6/20235/31/2023
85/6/20235/31/2023
95/6/20235/31/2023
105/6/20235/31/2023
Sheet2
Cell Formulas
RangeFormula
C2:C4C2=UNIQUE(EOMONTH(TEXT($A2:$A10,"M/D/YYYY"),0))
G2:G4G2=C2
E2:E10E2=@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?
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Once you put the formula into a table, then it will no longer grow/shrink as dates are added or removed.
 
Upvote 0
Is it just the dates that you want in a table and if so why?

If not then are there other columns to ba added to the table?

How often will the dates in column A be added to if at all?
 
Upvote 0
It's being used for reporting purposes. Daily balance data but only want to report values on month-end dates. My thought was that the month end date section could automatically expand as the daily data grows as time passes, which would then be used in the data model as a filter, and would make it so that I don't have to manually select the desired dates in a pivot table.

I'm new to using the Excel data model functionally so maybe there is a different way to achieve the same result? If I think in terms of a sql query, I would put some month end date logic in the WHERE clause to return only the data I want. Can I do something similar with the data model? I am totally open to alternative ideas from what I originally had in mind regarding how to automatically filter for dates.
 
Upvote 0
I've never needed to use the data model, so cannot help with that.
 
Upvote 0
How many months does the report cover?

For as many months that are covered by the data?

What are you reporting on against these month end dates?

Can you show us what the final report will look like?
 
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,152
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top