+ Reply to Thread
Results 1 to 8 of 8

filter data based on month

  1. #1
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    filter data based on month

    hi
    I search answering for my problem I would filter data based on month when I fill in cell c2 in sheet2 I try using function month or month name but I failed so I hope find the answering in this great forum
    by the way I also issued this post in this forum , but nobody answers me so far
    https://www.mrexcel.com/board/thread.../#post-5633105
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,519

    Re: filter data based on month

    Enter month number, 1 for Jan, 2 for Feb..etc in C2
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: filter data based on month

    I was able to meet your requirements but had to create a new file, here is code and new file

    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: filter data based on month

    thanks you're both it works very well
    @maniacb just I would mod your code if there is way to make me show the month based on language English I have to write pc language

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,519

    Re: filter data based on month

    This accepts both month number and month name in Eng. like jan, feb, mar...
    Please Login or Register  to view this content.
    Last edited by jindon; 02-06-2021 at 06:48 AM. Reason: Add error trap when C2 is blank

  6. #6
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: filter data based on month

    @jindon your code is perfect if you can write the month by name not number

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,519

    Re: filter data based on month

    What do you mean?

    It should also work when month number is entered.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: filter data based on month

    @ jindon sorry i though just number 1,2
    thanks very much

+ 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] How to filter for previous month data only?
    By AccountingJ in forum Access Tables & Databases
    Replies: 5
    Last Post: 11-06-2020, 10:43 AM
  2. Filter data from last month and delete it
    By flh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-22-2017, 07:08 AM
  3. Macro for applying filter for previous month's data
    By aaron1976 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-21-2015, 06:29 PM
  4. [SOLVED] Determine work days in current month or next month based on day of the month
    By sbrnard in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-29-2014, 05:14 PM
  5. [SOLVED] Trying to setup a filter based on Radio button Selection for the month
    By RaulRodriguez in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-12-2013, 09:35 AM
  6. [SOLVED] Code to auto filter three month segments of data from today's date
    By gryffin13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-17-2012, 04:51 PM
  7. Second Advanced Filter does not work based on the data generated from the filter
    By mucc1928 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-29-2011, 02:42 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