+ Reply to Thread
Results 1 to 1 of 1

Issue with dependent combo box when one 'content list' is shorter than others

  1. #1
    Registered User
    Join Date
    09-19-2023
    Location
    Australia
    MS-Off Ver
    Microsoft Office 365 for Enterprise
    Posts
    1

    Question Issue with dependent combo box when one 'content list' is shorter than others

    Hi

    I have been wrangling with this issue and Googling madly, but cannot seem to find an answer on this.

    I have set up 2 combo boxes where the second depends on the first. My (sample) spreadsheet has 2 tabs: "Reference" and "Formula"

    I have 3 columns of data to be used - Assignee, Priority and Phase.
    - There are 10 assignees in the Assignee list (column A)
    - There are 3 priorities in the Priority list (columns B)
    - There are 4 phases in the Phase list (column C).

    In column E I have the 'Criteria' for the first combo box (Assignee, Priority and Phase) in cells E2:E4
    In column F is the cell link for the first combo box (F2)
    Column G is the link for the second combo box (G2)
    Column H is Content to populate the second combo box. Formula in H2 is "=Index A2:C2,,$F$2" and this is copied down to H11. So when I select Assignee (for example), all 10 assignees are listed in cells H2:H11 etc.

    For the first combo box, the input range is is $E$2:$E$4 and cell link is $F$2
    For the seconc combo box, I followed one of Leila Gharani's tutorials to make sure that there are not a ton of 'blanks' at the bottom of the combo boxes, and therefore the 'input range' is "combobox" (which I defined in Name Manager as follows)
    "=Formula!$H$2:INDEX(Formula!$H$2:$H$16,MATCH("zzzzzzz",Formula!$H$2:$H$16,1))"
    and the cell link is $G$2.

    I also have 2 cells set up so that the output of what is selected in the box can be queried: O2 ("=INDEX($E2:$E4,$F$2)) and O5 ("=INDEX($H$2:H11,$G$2)

    Summary of issue: When I select Assignee in the first combo box, this populates the second combo box with10 items. If I select the last one (Assignee J) in the second combo box, then go back to the first combo box and select one of the 'shorter' criteria that has less possible values - eg Priority, whilst the second combo box shows "Medium" cell G2 still shows "9" (which is the reference to what was previously picked, ie Assignee J). Cell O2 (where I want to grab the selection to use in a formula) shows "0". If I then pick say "High", G2 updates to 1 as expected. But if I really did want Medium (the one that landed at default) - even if I re-select it in the second combo box, it doesn't register that it's been selected, and G2 remains as 9. I know I can 'force' the correct value of G2 by going and selecting High, then going back and selecting Medium, but this is not user friendly if someone else is using the sheet.

    Is there something I can do under this circumstance?

    Thanks in advance, btw this is my first post so I hope I have provided enough context and explanation.
    Attached Images Attached Images
    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. Userform in Excel for mac 2013: making dependent combo box issue
    By tsiguy96 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-19-2015, 12:00 PM
  2. Show list dependent on a cell content
    By Smally in forum Excel General
    Replies: 2
    Last Post: 07-31-2014, 11:38 AM
  3. [SOLVED] Dependent drop down list in user form combo box vba
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-09-2014, 07:06 AM
  4. Replies: 4
    Last Post: 04-17-2013, 03:28 PM
  5. Create a sheet with content dependent on the selection of a drop-down list
    By bbaumgardner22 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2013, 04:25 PM
  6. Dependent drop-down list (Combo boxes) using VB forms
    By GrunterNZ in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-19-2013, 08:18 PM
  7. [SOLVED] dependent combo box list, with indirect reference
    By Iyue in forum Excel General
    Replies: 1
    Last Post: 02-24-2005, 07:06 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