+ Reply to Thread
Results 1 to 10 of 10

How do I link Dropdown List (data validation) with filtering data from a table?

  1. #1
    Registered User
    Join Date
    07-29-2015
    Location
    Argentina
    MS-Off Ver
    2013
    Posts
    6

    Exclamation How do I link Dropdown List (data validation) with filtering data from a table?

    Hi, Im going crazy trying to figure this one out.

    Does anyone know how to make a data range get automatically filtered based on what you select in a dropdown list?

    Preferably, without using VBA or Macros, because I dont understand such advanced settings.

    It's pretty urgent, so any help will be highly appreciated! thank you!

  2. #2
    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,939

    Re: How do I link Dropdown List (data validation) with filtering data from a table?

    Hi, welcome to the forum

    Do you have a sample workbook that we could look at, so we can see what you are working with - and what you want?
    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

  3. #3
    Registered User
    Join Date
    07-29-2015
    Location
    Argentina
    MS-Off Ver
    2013
    Posts
    6

    Re: How do I link Dropdown List (data validation) with filtering data from a table?

    Well, actually Im using examples now, Im at home and I need it for work tomorrow. But here's an example file:
    excel filter data validation example.xlsx
    I basically want to run a subtotal of all the number columns PER person name. So I was thinking of a subtotal function. But I would need a way to make an automatic filter of the data when I pick a name from the list.

    Any ideas?

  4. #4
    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,939

    Re: How do I link Dropdown List (data validation) with filtering data from a table?

    The names in your sampl list only appear once. If that is representative of all your data (all unique names), then try this in B2, copied across...
    =VLOOKUP($A2,$A$6:$G$31,COLUMN(),0)

    If the names will repeated, then perhaps give a more representative sample?

    edit: Actually, if the names will repeat, then use the VLOOKUP() for the 1st 2 columns (format as needed), then use this for the other columns to run the sum...
    =SUMIF($A$6:$A$31,$A$2,D6:D31)

  5. #5
    Registered User
    Join Date
    07-29-2015
    Location
    Argentina
    MS-Off Ver
    2013
    Posts
    6

    Re: How do I link Dropdown List (data validation) with filtering data from a table?

    Yes sorry I sent you the one with no repeats. But the idea is that there could be one name and many entries and I want it to sum all of them per person, then throw the subtotal when I pick the name from the dropdown list.

    Im not sure I understand the second function (sumif). What's the criteria?

  6. #6
    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,939

    Re: How do I link Dropdown List (data validation) with filtering data from a table?

    C2=VLOOKUP($A2,$A$6:$G$31,COLUMN(),0)
    D2=VLOOKUP($A2,$A$6:$G$31,COLUMN(),0)
    E2=SUMIF($A$6:$A$31,$A$2,D6:D31)
    copy E2 across

    Adjust the ranges as needed

  7. #7
    Registered User
    Join Date
    07-29-2015
    Location
    Argentina
    MS-Off Ver
    2013
    Posts
    6

    Re: How do I link Dropdown List (data validation) with filtering data from a table?

    Ok I applied SUMIF and it's working !! But only for one column of the numbers, I dont kknow why. How could I do the same but to sum all the values in the four columns of numbers for the person selected? (I did: =SUMIF(A6:A31;A$2;E6:G31) ) Thank you!
    Last edited by Trishux25; 07-29-2015 at 09:34 PM.

  8. #8
    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,939

    Re: How do I link Dropdown List (data validation) with filtering data from a table?

    OK, if you want 1 total for all, try this...
    =SUMPRODUCT(--($A$6:$A$31=$A$2)*(D6:G31))

  9. #9
    Registered User
    Join Date
    07-29-2015
    Location
    Argentina
    MS-Off Ver
    2013
    Posts
    6

    Re: How do I link Dropdown List (data validation) with filtering data from a table?

    It worked!!! Thank you so much!!

  10. #10
    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,939

    Re: How do I link Dropdown List (data validation) with filtering data from a table?

    Happy to help.
    If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to you)

+ 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] Dropdown list to link specific data from other sheets
    By Thuch Vannarath in forum Excel General
    Replies: 9
    Last Post: 03-03-2015, 05:41 AM
  2. Select item of a dropdown list (data validation) and refresh one pivot table
    By ATN123 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-17-2014, 07:40 AM
  3. [SOLVED] Data Validation dropdown list
    By grumpyguppy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-31-2012, 01:54 AM
  4. [SOLVED] How to use value in cell after filtering data, using data validation list method
    By SAGAR KHOLLAM in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-20-2012, 02:01 AM
  5. filtering multiple data validation dropdown lists
    By gdallas in forum Excel General
    Replies: 4
    Last Post: 05-12-2010, 03:28 AM
  6. Trouble with data validation and filtering on a dropdown
    By zura04 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2006, 10:54 AM
  7. Data validation dropdown list
    By Bernie Simmonds in forum Excel General
    Replies: 2
    Last Post: 06-24-2005, 07:05 PM

Tags for this Thread

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