Validation lists with no duplicates

crun2075

New Member
Joined
Jun 6, 2020
Messages
18
Office Version
  1. 365
Hello there,

I have the following table

AB
531​
hello
531​
hi there
540​
goodbye
540​
so long


In C3 is it possible to do two validation lists, one which show only row A and a second to use indirection to only show the corresponding choice in column b based on column A? Hopefully, I am explaining it right and new to indirection and validation lists. I can for the most part create them, just having trouble with the indirection only showing choices made by column B.

Would it also be possible to show the results with no duplicates?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
531hello531531531hello
531hi there540540531hi there
540goodbye531540goodbye
540so long540540so long
531hello531hello$j$1:$j$2
531hi there540goodbye$j$3:$j$4
540goodbye531$j$1:$j$2
540so long540$j$3:$j$4

sorry haven't got the column and row headers, but it just goes from a1 across.

J6 code is
Excel Formula:
=IFERROR("$j$"&MATCH(C6,$I$1:$I$4,0)&":$j$"&MATCH(C6,$I$1:$I$4,0)+COUNTIF($I$1:$I$4,C6)-1,"")
this finds the first instance of the selection in column c and counts how many times that selection appears, so your validation list needs to be in order
validation for column d is
Excel Formula:
=INDIRECT($J6)

I've used unique for column G but you can just as easily copy in your first column of data and do remove duplicates. Depends if your selection options are going to be static or not

So validation for column c is just
Excel Formula:
=$G$1:$G$2
 
Upvote 0
Thank you so much so the reply. Could by chance attach an example please? The first formula didn't return what you said it would have (probably a user error on my end). But i also tend be a hands on learner if i can see it already done adapt that way etc, if that makes sense.
 
Upvote 0
So the active validation is in c6-c9 and d6-d9
let me know how you go

multipleStepAuthentication.xlsx
ABCDEFGHIJ
1531hello531531hello
2531hi there540531hi there
3540goodbye540goodbye
4540so long540so long
5
6531hello$j$1:$j$2
7540goodbye$j$3:$j$4
8531$j$1:$j$2
9540$j$3:$j$4
Sheet1
Cell Formulas
RangeFormula
G1:G2G1=UNIQUE(A1:A4)
J6:J9J6=IFERROR("$j$"&MATCH(C6,$I$1:$I$4,0)&":$j$"&MATCH(C6,$I$1:$I$4,0)+COUNTIF($I$1:$I$4,C6)-1,"")
Dynamic array formulas.
Cells with Data Validation
CellAllowCriteria
D6:D9List=INDIRECT($J6)
C1:C4,C6:C9List=$G$1:$G$2
D1:D4List=$J$1:$J$2
 
Upvote 0

Forum statistics

Threads
1,214,988
Messages
6,122,620
Members
449,092
Latest member
amyap

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top