+ Reply to Thread
Results 1 to 4 of 4

Drop down box help

  1. #1
    Forum Contributor
    Join Date
    06-18-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    104

    Drop down box help

    I attached a sample spreadsheet but I was wondering if there was a code that could display a range based on an option selected in a dropdown box.

    Thanks,
    Scott
    Attached Files Attached Files

  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
    53,048

    Re: Drop down box help

    I would use a regular Data Validation Drop-Down.

    1st, delete the box you have there.
    then, Select D4 (or wherever you want to put it), under Data/data Tools, select Data Validation, select ALLOW - List
    If you just have those 3 entries, type then in, seperated by comma's

    Next, use this, copied across and down in D5...
    =OFFSET(INDIRECT(CELL("address",INDEX($A$1:$A$17,MATCH($D$4,$A$1:$A$17,0),1))),ROW(A1)+1,COLUMN(A1)-1)
    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
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Drop down box help

    If you structured the sheet in a classic database layout you could just use autofilter. Or if you need to present the result on another sheet, use a Pivot Table and, optionally, Slicers as "pretty" selector for remotely filtering the Pivot Table from, say, a report sheet.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Forum Contributor
    Join Date
    06-18-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    104

    Re: Drop down box help

    So I found that the equation worked perfectly when all of the data is presented on one sheet, however I am referencing multiple pivot tables on different sheets for the spreadsheet I am working with. Again, I attached a sample spreadsheet for clarity. Any help with the index portion of the equation would be great! Thanks!

    Scott
    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)

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