+ Reply to Thread
Results 1 to 7 of 7

Macro to filter data monthwise

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    112

    Macro to filter data monthwise

    Hi Experts,

    I have collective data based on different dates. The format of the date is "Month,date,year"
    There are 4 columns such as John, Peter, Alan & Thomas for which i need the data to be filtered month wise.First column has dates.
    For eg: For John I require the total count for the month say "June" .similarly for Peter, Alan and Thomas I need the total count.

    I tried with Pivot table but not able to sort monthwise.

    I have attached a sample workbook.And hope my requirement is clear.
    Please provide me a solution.
    Attached Files Attached Files
    Last edited by sivdin; 06-21-2011 at 06:08 AM.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Macro to filter data monthwise

    Hi slvdin,

    I did a pivot table. See if this isn't what you want.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Contributor
    Join Date
    04-21-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: Macro to filter data monthwise

    Hi Marvin, Thanks...I need the exactly what you have done.

    But I tried the same earlier, But the result for me was.... I got all dates? Not able to sort by month????
    I have attached the sample which I arrived with.. May be something very silly which I have missed out in pivot table.

    Can you please help me out?

  4. #4
    Forum Contributor
    Join Date
    04-21-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: Macro to filter data monthwise

    Sorry , here is the attachment
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    04-21-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: Macro to filter data monthwise

    Any help??

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Macro to filter data monthwise

    Hi,

    You need to find the GROUP BY feature of pivot tables. Watch the video at http://www.howcast.com/videos/20109-...oft-Excel-2003 to see how.

  7. #7
    Forum Contributor
    Join Date
    04-21-2009
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    112

    Re: Macro to filter data monthwise

    OMG!! It was silly from me..
    But thanks anyway.....

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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