Share via

Problem with dependent drop-down list

Anonymous
2024-02-26T13:55:25+00:00

Hi,

I have a problem, which is the following: I have two drop-down lists (column B and C) where the selection for list #2 depends on list #1. However, this only works perfectly for the first cell of column B and C. This is because the formula contains a reference to B3 >>> =SORT(UNIQUE(XLOOKUP(Sheet1!$B3;Table2[#Headers];E3:H9)))).

Meanwhile, I tried all kinds of possible solutions, with no result. I have no idea how to solve this.

Who can help me?

Thanks in advance!

Microsoft 365 and Office | Excel | For business | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2024-02-27T13:18:41+00:00

It turned out to be a problem with the naming of the ranges.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

10 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-02-26T18:15:39+00:00

    We're out of luck...

    Was this answer helpful?

    0 comments No comments
  2. HansV 462.6K Reputation points
    2024-02-26T16:14:13+00:00

    My bad! Use SUBSTITUTE instead of REPLACE.

    Sorry about that.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-02-26T16:06:27+00:00

    Thanks for your solution @HansV MVP :-)

    Defining names goes without any problem.

    What is going wrong when setting the Data Validation Source?

    Cheers,

    /Henk

    Was this answer helpful?

    0 comments No comments
  4. HansV 462.6K Reputation points
    2024-02-26T14:15:07+00:00

    Create defined names

    Administrative_risks referring to =OFFSET($E$2, 1, 0, COUNTA($E$2:$E$9), 1)

    Clinical_risks referring to =OFFSET($F$2, 1, 0, COUNTA($F$2:$F$9), 1)

    etc.

    Set the Source of the data validation rule in C3 and down to

    =INDIRECT(REPLACE(B3, " ", "_"))

    Was this answer helpful?

    0 comments No comments