+ Reply to Thread
Results 1 to 6 of 6

Filter Data with a userform that has multiple criteria

  1. #1
    Registered User
    Join Date
    09-08-2012
    Location
    Andover, UK
    MS-Off Ver
    Excel 2010
    Posts
    43

    Filter Data with a userform that has multiple criteria

    Hi,

    i have a worksheet with loads of data on that i want to filter by several different options so there can be various different variations of filter.

    i have attacehd a copy of the database with a userform created that i am trying to use.
    this includes a date range, a week range and then 4 variables to filter by so 6 variables in total

    i managed to do this with access but not sure how to go about this with excel.

    The aim is that once the data is filtered the graphs will dynamically update with the filtered selection.

    I am not very good at explaining things so if i am not clear please ask.

    Any help is greatly appreciated
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Filter Data with a userform that has multiple criteria

    Hi TubbzUK,
    couple of questions.

    Where are your graphs? How many?
    What data do you want represented in the graphs?
    Do you want the filtered data copied to the Filter sheet?

    If i get a chance i will have a look later today if nobody else comes up with a solution as this is a fair bit of work.
    Regards
    Sean

    Please add to my reputation if you think i helped
    (click on the star below the post)
    Mark threads as "Solved" if you have your answer
    (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code:
    [code] Your code here [code]
    Please supply a workbook containing example Data:
    It makes its easier to answer your problem & saves time!

  3. #3
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Filter Data with a userform that has multiple criteria

    Okay,
    first problem we have is all your dates are not actually dates.
    Therefore the date filter will not work.
    You will need to reslove this problem before we can filter them.

    Ideally you need to have the data captured in date format, otherwise you will need to change the data to date format for the filter to work.

    heres a link to show you how.

    http://office.microsoft.com/en-gb/ex...001162867.aspx

    I have changed the data you supplied but you will need to sort ths out first.

  4. #4
    Registered User
    Join Date
    09-08-2012
    Location
    Andover, UK
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Filter Data with a userform that has multiple criteria

    Hi,

    thanks for the help.

    I think i understand the date issue.
    i have got the filter for the week range to work and the single criteria. I just need to get them all workign at the same time so for example if you select team 1 and product F08228 then those will be the only results copied to the filter worksheet.

    I have attached an updated version of what i have been working on today.

    for the graphs and stuff i have not done them yet but what i was intending was a user form to show the grpahs that have been created from the filtered data. this will be dynamically created from the named ranges i create using offset on the filter sheet. i will probably create these tomorrow.

    I also have to sort out the problem where once the apply filter button has been pressed the user form dissappears and loses focus. Gettign it back you have to alt tab it.

    Thanks for your help. its greatly appreciated

  5. #5
    Registered User
    Join Date
    09-08-2012
    Location
    Andover, UK
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Filter Data with a userform that has multiple criteria

    sorry, cant attach the file at the moment as for some reason it has jumped in size to 22mb!

    the code i have put on the apply button is
    Please Login or Register  to view this content.
    Hope you can see what it does.

  6. #6
    Valued Forum Contributor Sean Thomas's Avatar
    Join Date
    03-25-2012
    Location
    HerneBay, Kent, UK
    MS-Off Ver
    Excel 2007,2016
    Posts
    971

    Re: Filter Data with a userform that has multiple criteria

    Hi,
    I have updated the workbook.
    run showform macro to open useform.
    the comboboxes will be populated with unique values to select from.
    I have added a couple of buttons which will display a date picker to choose your dates from.
    Exit button dealt with, Clear selection done & enter button.

    I haven't done anything with the charts as I don't know what you want to achieve.
    Attached Files Attached Files

+ 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. Filter Excel Data using vba multiple criteria multiple columns
    By pmyk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-28-2013, 01:32 AM
  2. [SOLVED] Filter Data based upon multiple criteria and counting the data
    By Acidking in forum Excel General
    Replies: 5
    Last Post: 06-13-2013, 09:42 PM
  3. Data Filter from Criteria Supplied from Listboxes on a Userform
    By Metserv in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2012, 04:51 AM
  4. filter of data of one column through multiple criteria
    By sharmanjali87 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-05-2011, 05:53 AM
  5. Excel 2007 : multiple criteria data filter
    By ballerino in forum Excel General
    Replies: 1
    Last Post: 07-10-2008, 04:49 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