+ Reply to Thread
Results 1 to 9 of 9

Dynamic Output Based on Dropdown Selection With Corresponding Range V2

Hybrid View

  1. #1
    Registered User
    Join Date
    12-10-2023
    Location
    Denmark
    MS-Off Ver
    Mac, Excel MS 365, Version: 16.79.2
    Posts
    4

    Dynamic Output Based on Dropdown Selection With Corresponding Range V2

    Initial problem

    Creating a dynamic output based on the selection from dropdowns in cells B19 and B22 when the same criterion was chosen. In simpler terms, when one range is filled, its content is copied to another range, when the corresponding dropdown menu's criteria are met.

    The context is an exercise program, in which the athletes need a way to track their previous performance measured by reps, sets, and RPE the last time they used a specific exercise.

    See picture below for reference.

    Sk?rmbillede 2023-12-09 kl. 20.58.52.png

    This was solved by:

    =IFERROR(IF(B22="","",INDEX(O$19:Q21,SEQUENCE(3,,XLOOKUP(B22,B$19:B19,SEQUENCE(ROWS(B$19:B19)),"N/A",0,-1)),SEQUENCE(,3))),"")


    V2

    I want to expand this functionality to five different dropdowns, dynamically.

    Corresponding range = green cells in the picture below

    Dropdown list B19 with corresponding range =O19:Q21

    Dropdown list B22 with corresponding range =O22:Q24

    Dropdown list B25 with corresponding range =O25:R27

    Dropdown list B28 with corresponding range =O28:Q30

    Dropdown list B31 with corresponding range =O31:Q33



    The problem lies in creating a dynamic Excel formula that not only searches for the most recent occurrence of the selected option from any dropdown but also considers multiple dropdowns meeting the same criteria.

    It should be configured such that when an option is chosen from a dropdown (for instance, in cell B25), it should search for the last instance where that same option was selected in the previous dropdowns (such as B19 and B22).
    Then, it should display the data associated with the most recent selection (in this case, the data from the range O22:Q24 for B22) into the new corresponding range aligned with the current selection (which would be U25:W27 for B25).

    Here's the layout, five dropdowns all meeting the same criteria. Green-colored cells are the range of which the performance is inputted while the purple-colored cells are for the records of previous performance.

    Sk?rmbillede 2023-12-09 kl. 21.01.34.png

    I also attached a sample file with the layout.

    I'm working in Excel on Mac, Excel 365, Version: 16.79.2. The solution should be tailored to fit these specifications.
    Attached Files Attached Files
    Last edited by Relic24; 12-13-2023 at 03:56 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,031

    Re: Dynamic Output Based on Dropdown Selection With Corresponding Range V2

    Administrative Note:

    Welcome to the forum.

    Is your forum profile showing the Excel PRODUCT that you need this to work for?

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The three most recent Excel products are Excel 2019, Excel 2021 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,031

    Re: Dynamic Output Based on Dropdown Selection With Corresponding Range V2

    Your sample workbook is far too pared back - most of what we would need to see is missing - no drop-downs, no formulae, no expected results manually mocked up. Also your screenshots are too small - add the annotations to the sample workbook instead.

  4. #4
    Registered User
    Join Date
    12-10-2023
    Location
    Denmark
    MS-Off Ver
    Mac, Excel MS 365, Version: 16.79.2
    Posts
    4

    Re: Dynamic Output Based on Dropdown Selection With Corresponding Range V2

    Hi AliGW,

    I've updated my profile with all the necessary details about the Excel version I'm using.

    Additionally, I've revised the sample workbook to include the specified dropdowns and formulas.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,031

    Re: Dynamic Output Based on Dropdown Selection With Corresponding Range V2

    Sorry to press on this, but I asked for annotations to be added to the sample workbook. Some signposting is necessary - I cannot read the screenshots.

  6. #6
    Registered User
    Join Date
    12-10-2023
    Location
    Denmark
    MS-Off Ver
    Mac, Excel MS 365, Version: 16.79.2
    Posts
    4

    Re: Dynamic Output Based on Dropdown Selection With Corresponding Range V2

    Could you clarify what you mean by "signposting" and "annotations"? Are you referring to actual arrows and pointing to be used in the workbook or a text box with added context to the workbook beyond my description in this thread?

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    91,031

    Re: Dynamic Output Based on Dropdown Selection With Corresponding Range V2

    There is a screenshot in your first post with annotations - those annotations should be in the sample workbook.

    Your concept is completely alien to me - you need to hold our hands in explaining it to us.

  8. #8
    Registered User
    Join Date
    12-10-2023
    Location
    Denmark
    MS-Off Ver
    Mac, Excel MS 365, Version: 16.79.2
    Posts
    4

    Re: Dynamic Output Based on Dropdown Selection With Corresponding Range V2

    Hi again,

    Apologies for the delay.

    I have included the workbook with two sheets: one containing V1 solution in sheet 1 and the V2 layout in sheet 2. Additionally, I've included annotations and text boxes to clarify the specific issues I need assistance with in sheet 2.

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,017

    Re: Dynamic Output Based on Dropdown Selection With Corresponding Range V2

    This proposal employs a helper column which may be moved and/or hidden for aesthetic purposes.
    1. The helper column (M) is populated using: =IF(B3<>"",B3&1,SUBSTITUTE(M2,IF(RIGHT(M2,1)+0=1,1,2),RIGHT(M2,1)+1))
    2. The cells in the previous performance section are populated using: =IFERROR(INDEX(G$3:G3,AGGREGATE(14,6,(ROW(G$3:G3)-ROW(G$2))/($M$3:$M3=$M6),1)),"")
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] TradingJournal - Dynamic cell reference formula based on dropdown list selection
    By ecronic in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 07-04-2023, 02:24 PM
  2. Multiple Dropdown selection & Column Groupings based on dropdown selection
    By rabrol in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-20-2018, 10:23 AM
  3. [SOLVED] Use VBA to populate Range based on Dropdown date selection
    By Invicta084 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-09-2015, 08:58 AM
  4. Replies: 3
    Last Post: 03-23-2014, 02:06 PM
  5. Replies: 9
    Last Post: 02-26-2014, 04:17 PM
  6. Dynamic dropdown list selection based on combo box
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-10-2012, 10:55 AM
  7. Output specifc data based on dropdown selection
    By Deathomen in forum Excel General
    Replies: 0
    Last Post: 07-02-2011, 12:14 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