+ Reply to Thread
Results 1 to 6 of 6

Tables: Filtering: a) specific dates; b) 1st day of Month; c) Last day of Month. Possible?

  1. #1
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Tables: Filtering: a) specific dates; b) 1st day of Month; c) Last day of Month. Possible?

    Hi all,

    I have a large dataset where each row represents a date. In my data exploration, I desire to (quickly) find:

    a) A specific date across all the data. For example the 24th of December for the entire dataset

    b) 1st day of a given month. For example the 1st day in January for the entire dataset

    c) The last day of a given month. For example the last day in February for the entire dataset

    d) 1st/last day of the quarter (I realize this one may be even more tricky)

    To make it more difficult - I'd love to be able to do this without creating helper columns.

    Is this even possible? Would I need VBA to do it?

    I don't expect to have this solved here, but maybe a nudge in the right direction and probably in the end I would have to hire someone to do it.

    Thanks in advance.

    Elijah

    PS: Attaching a sample workbook just in case.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Tables: Filtering: a) specific dates; b) 1st day of Month; c) Last day of Month. Possi

    Maybe this:

    1st day of a given month. For example the 1st day in January for the entire dataset -

    G2:
    Please Login or Register  to view this content.
    The last day of a given month. For example the last day in February for the entire dataset
    G3:
    Please Login or Register  to view this content.
    1st/last day of the quarter (I realize this one may be even more tricky)
    I2 =
    Please Login or Register  to view this content.
    J2 =
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365 for MAC
    Posts
    3,105

    Re: Tables: Filtering: a) specific dates; b) 1st day of Month; c) Last day of Month. Possi

    I didnt understand your first section:
    a) A specific date across all the data. For example the 24th of December for the entire dataset
    You want to finf the location? the cell number?

  4. #4
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Tables: Filtering: a) specific dates; b) 1st day of Month; c) Last day of Month. Possi

    Hi Belinda,

    Thank you!

    What I desire is to actually filter these days.

    Just like I in the sample table can filter (and show only) days which contains "Friday". I would then like to filter days which contains only 1st day of the month (and the other values I suggested).

    Best regards.

    Elijah

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Tables: Filtering: a) specific dates; b) 1st day of Month; c) Last day of Month. Possi

    G1 is the specific date.

    a) A specific date
    =FILTER(Tabell1,Tabell1[Date]=G1)
    or
    =FILTER(Tabell1,DAY(Tabell1[Date])=DAY(G1))

    b) 1st day of a given month
    =FILTER(Tabell1,Tabell1[Date]=EOMONTH(G1,-1)+1)
    or
    =FILTER(Tabell1,DAY(Tabell1[Date])=1)


    c) The last day of a given month
    =FILTER(Tabell1,Tabell1[Date]=EOMONTH(G1,0))
    or
    =FILTER(Tabell1,Tabell1[Date]=EOMONTH(+Tabell1[Date],0))

    d) 1st day of the quarter
    =FILTER(Tabell1,Tabell1[Date]=DATE(YEAR(G1),CEILING(MONTH(G1),3)-2,1))
    or
    =FILTER(Tabell1,Tabell1[Date]=DATE(YEAR(Tabell1[Date]),CEILING(MONTH(Tabell1[Date]),3)-2,1))


    e) last day of the quarter
    =FILTER(Tabell1,Tabell1[Date]=DATE(YEAR(G1),CEILING(MONTH(G1),3)+1,0))
    or
    =FILTER(Tabell1,Tabell1[Date]=DATE(YEAR(Tabell1[Date]),CEILING(MONTH(Tabell1[Date]),3)+1,0))
    Attached Files Attached Files
    Last edited by Bo_Ry; 01-19-2021 at 02:06 AM.

  6. #6
    Forum Contributor
    Join Date
    03-31-2010
    Location
    Norway
    MS-Off Ver
    Excel 365
    Posts
    632

    Re: Tables: Filtering: a) specific dates; b) 1st day of Month; c) Last day of Month. Possi

    Hello, Bo_Ry,

    Many thanks!

    I need to see if I can integrate that within my own tables, but it does look like a nice solution. Thank you very much.

    However, for 1st day of the quarter, it should be the 1st day of the quarter for the data set. I imagine that will not always be the 1st of month, but 2nd, 3rd, etc. But did not test it.

    Best regards.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Calculation of days per month for dates beginning in one month and ending in another month
    By Fahrettin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-07-2015, 04:52 PM
  2. Filtering dates by year, month, day?
    By Mr Davo in forum Excel General
    Replies: 2
    Last Post: 10-27-2015, 09:15 PM
  3. Replies: 2
    Last Post: 12-17-2013, 06:30 AM
  4. Replies: 2
    Last Post: 12-01-2012, 03:06 PM
  5. Replies: 1
    Last Post: 10-25-2010, 05:44 PM
  6. Pivot Tables: Grouping Dates by Month with Blanks
    By ChemistB in forum Excel General
    Replies: 2
    Last Post: 07-01-2010, 09:28 AM
  7. Filtering dates by month
    By virly16 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 07-08-2007, 10:27 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1