+ Reply to Thread
Results 1 to 15 of 15

Help creating dynamic drop down list

  1. #1
    Registered User
    Join Date
    09-06-2021
    Location
    Northern Ireland
    MS-Off Ver
    365
    Posts
    20

    Help creating dynamic drop down list

    I am a new user and I am trying to create drop down list to use as part of a dashboard.

    I am able to create drop down for region using name range and data validation but everything I have tried to make the Region link to the respective areas within comes back with error. Attached excel file.

    Please help!! It would be greatly appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,227

    Re: Help creating dynamic drop down list

    Make all Areas named ranges:EXCEL will replace blanks with underscore

    For DV

    =INDIRECT(SUBSTITUTE($D$1," ", "_"))
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Help creating dynamic drop down list

    Please try
    Please Login or Register  to view this content.
    Note : Cell H3 have a space after 'South East'. And all dropdown must be continuous (no blank cell).
    Note2 : You may change dropdown list of D1 to $A$13:$I$13 for avoid wrong spell of region.

    Regards.
    Last edited by menem; 09-06-2021 at 10:42 PM. Reason: add more note.

  4. #4
    Registered User
    Join Date
    09-06-2021
    Location
    Northern Ireland
    MS-Off Ver
    365
    Posts
    20

    Re: Help creating dynamic drop down list

    Thank you both this is excellent!

    How can I now link these names to corresponding data within Pivot table.

    Frances

  5. #5
    Registered User
    Join Date
    09-06-2021
    Location
    Northern Ireland
    MS-Off Ver
    365
    Posts
    20

    Re: Help creating dynamic drop down list

    This works perfect on the sheet attached but when I move this to a different worksheet it doesnt work, have you any ideas of how to fix this?

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,227

    Re: Help creating dynamic drop down list

    Post the error file. I copied the C1:D2 range to another sheet without any problem

  7. #7
    Registered User
    Join Date
    09-06-2021
    Location
    Northern Ireland
    MS-Off Ver
    365
    Posts
    20

    Re: Help creating dynamic drop down list

    Please can you help.

    I want the dropdown buttons located in the dropdown tab to work in the dashboard tab but this doesnt work for me.

    How then can I link the drop down matrix with get pivot function?

    Help much appreciated.

    Thanks
    Attached Files Attached Files

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,227

    Re: Help creating dynamic drop down list

    Try

    =OFFSET(Dropdown!$A$13,1,MATCH($B$2,Dropdown!$13:$13,0)-1,COUNTA(OFFSET(Dropdown!$A$13,1,MATCH($B$2,Dropdown!$13:$13,0)-1,1000000,1)))

    Much easier if named ranges had been used.

    You need to reference the Dropdown Sheet in the formula.

    How then can I link the drop down matrix with get pivot function?
    My interpretation:

    Created named range DBLA based on E2 in Dashboard

    in "Get Pivot Data"

    in B2

    =DBLA

    in B5

    =GETPIVOTDATA("Sum of Smoking Prevalence in adults (18+)%",'Pivot table'!$A$3,"AreaName",$B$2)

    Repeat for other
    Attached Files Attached Files
    Last edited by JohnTopley; 09-28-2021 at 12:48 PM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  9. #9
    Registered User
    Join Date
    09-06-2021
    Location
    Northern Ireland
    MS-Off Ver
    365
    Posts
    20

    Re: Help creating dynamic drop down list

    John,

    Thank you so much this is super.

    Thanks

    Frances

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,227

    Re: Help creating dynamic drop down list

    You're welcome.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED

  11. #11
    Registered User
    Join Date
    09-06-2021
    Location
    Northern Ireland
    MS-Off Ver
    365
    Posts
    20

    Re: Help creating dynamic drop down list

    No problem I will do that.

    Is it possible to display different selected values based on the dropdown options.

    Can you display only the values for option selected in B2? (no local area option selected)

    Currently it is showing the local area option selected in E2.

    You have been such a help to me.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,072

    Re: Help creating dynamic drop down list

    Your duplicate thread has been closed - continue here, please.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,227

    Re: Help creating dynamic drop down list

    If you want to display a Region then we need to be able to identify it is Region not Area selection: for example the "Area" dropdowns have a blank entry so we can add a conditional statement in the "Get Pivot Data" sheet

  14. #14
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,227

    Re: Help creating dynamic drop down list

    Blank is probably not a good choice as it delimits the Area dropdown lists: so another choice is required.
    Last edited by JohnTopley; 09-29-2021 at 06:04 AM.

  15. #15
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,227

    Re: Help creating dynamic drop down list

    See attached.

    Added drop down to "Get Pivot Data" to select "Region" or "Area"

    in B2

    =IF(A2="Region",DBR&" Region",DBLA)

    DBR is named range for Region on "Dashboard"(updated file as I initially used "Dropdown!)
    Attached Files Attached Files
    Last edited by JohnTopley; 09-29-2021 at 06:48 AM.

+ 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. [UPDATED] Creating a 3-Tiered Dynamic Drop-Down List (NOT VBA)
    By Kogen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-14-2020, 01:01 PM
  2. Replies: 3
    Last Post: 12-14-2020, 12:36 PM
  3. Creating a 3-Tiered Dynamic Drop-Down List with VBA
    By Kogen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2020, 05:33 AM
  4. Dynamic Arrays, Dynamic Drop down list, Filters and multiple rows
    By Big_Kev007 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-09-2020, 06:35 AM
  5. Replies: 8
    Last Post: 11-05-2019, 06:58 AM
  6. Replies: 4
    Last Post: 01-16-2019, 10:20 AM

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