+ Reply to Thread
Results 1 to 8 of 8

Filtering date according to first day of each month

  1. #1
    Registered User
    Join Date
    06-28-2015
    Location
    Glasgow, Scotland
    MS-Off Ver
    Office 2007
    Posts
    12

    Filtering date according to first day of each month

    Hi everyone,

    I would like to filter first days of each month over several years i.e. how I could easily filter my data like "1/1/2010, 1/2/2010 ..... 1/1/2011, 1/2/2011 and etc." Please see attached file.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Filtering date according to first day of each month

    Use a formula in column E that returns the day number then you can filter on day 1.

    Entered in E2 and copied down:

    =DAY(A2)

    All of your dates are already the 1st of the months (unless you did that just for demonstration purposes).
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Filtering date according to first day of each month

    Im not sure I understand your question? Your dates are already only 1st of the month

    Or did you mean that you only want to show Jan, Feb, Mar (for instance) for all years?

    Edit: If you meant only those months, try this, copied down in a helper column - then filter on that helper...
    =IF(MONTH(A2)<=3,A2,"")
    Last edited by FDibbins; 07-12-2015 at 05:36 PM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    06-28-2015
    Location
    Glasgow, Scotland
    MS-Off Ver
    Office 2007
    Posts
    12

    Re: Filtering date according to first day of each month

    Sorry for the wrong file. Please this file.
    Attached Files Attached Files

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Filtering date according to first day of each month

    Tony's suggestion in post #2 should do what you want

  6. #6
    Registered User
    Join Date
    06-28-2015
    Location
    Glasgow, Scotland
    MS-Off Ver
    Office 2007
    Posts
    12

    Re: Filtering date according to first day of each month

    Quote Originally Posted by Tony Valko View Post
    Use a formula in column E that returns the day number then you can filter on day 1.

    Entered in E2 and copied down:

    =DAY(A2)

    All of your dates are already the 1st of the months (unless you did that just for demonstration purposes).
    Thanks,Tony. That was of a great help))

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Filtering date according to first day of each month

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

  8. #8
    Registered User
    Join Date
    05-01-2017
    Location
    Georgia
    MS-Off Ver
    Office 10
    Posts
    1

    Re: Filtering date according to first day of each month

    I am having a similar problem. I update the Data from 5/1 to 6/1 but my pivot table and charts do not read the new data in column A?

+ 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. Sort month/date/year data using month and date only
    By SMW820 in forum Excel General
    Replies: 8
    Last Post: 11-18-2014, 08:39 AM
  2. How can i show date in this form (month,last date of that month, Year)?
    By vjharry in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-24-2014, 04:39 AM
  3. Filtering according to month
    By rbs123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-09-2013, 07:26 AM
  4. Array function for date(month), Range Date(month)
    By dluhut in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2013, 05:14 PM
  5. [SOLVED] Date arithmetic: adding 1 month to prior end of month date
    By manxman in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-14-2006, 04:35 PM

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