+ Reply to Thread
Results 1 to 3 of 3

Query/Filtering by Date

  1. #1
    Registered User
    Join Date
    10-27-2010
    Location
    NC, United States
    MS-Off Ver
    2007
    Posts
    32

    Query/Filtering by Date

    I have a table in my database that has a date field (we'll call salesdate). I use this table in a query, which is in turn linked to an excel spreadsheet and turned in a pivot table.

    Here is my question. The salesdate field is formatted as XX/XX/XXXX. The pivot table shows the entire tables data. I would like to be able to filter in the pivot table by month instead of having to click 30 days each month. So the end user could go the filter or control, and filter by August 2010 for example.

    I read Excel 2010 has a new type of filter where you could filter by a date range but I am using 2007. I also played with changing the database itself or the query in Access. Could I have an Expr field that modifies the salesdate field? This would in turn create a better field to use a filter by having a list (August 2010, September 2010, or ...Sept-10, Aug-10 etc.

    Any advice on the most practical solution is appreciated.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Query/Filtering by Date

    It would be good if you provide us a sample of your pivot, so we can help you faster.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Query/Filtering by Date

    You need to take a look at the group by functions of a pivot table, you can group by month and year

+ 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