Problems converting array formula to dependant drop down list

gaosiyou

New Member
Joined
May 19, 2016
Messages
3
Hi All,

I've been trying to find an array formula for a dependant drop down list I saw a few years ago.

Basically, I have three Source columns (Category, SubCategory, Details) that I need to work with.

Constraints:
Must not use VBA, Helper Columns, Macros
Source is not defined as a Table
Source is not sorted
Details Category has Blanks
around 450 Rows in source (pretty stable) but data is not static

I need to be able to pull a list of unique values for the drop down, based on the value in a given cell.

Example source data (Trimmed)

Category SubCategory Details
Espnts Acceil Acceil
Espnts Zonant
Espnts Murons
Espnts Ateées Atede)
Espnts Ateées Atete)
Espnts Ateées Atete)
Tranel Autnel
Tranel Poste) DSCDSC
Tranel Poste) RSSSSC
Tranel Comion
Coneil Bureau Bur0''
Coneil Bureau Burx12
Coneil Espeil ± 99x9
Coneil Espeil ± 9 PF
Coneil Espeil ± 9res
Coneil Poste) Poseil
Coneil Poste) PosCST
Coneil Bureau Adj0''
Coneil Bureau Adj0''
Coneil Bureau Salrs.
Coneil Esptif Zonrs.
Coneil Bureau Salrs.
Coneil Bureau
Coneil Bureau Salrs.
Opénel Mécée)

Using the following array formula on multiple rows in sheet 2, and ... given sheet2!$F$2="Bureau",
I obtain the following Unique Values in Column G...

{=IFERROR(INDEX(Details, SMALL(IF(($F$2=SubCategory)*(COUNTIF($G$1:G1, Details)=0), ROW(SubCategory)-MIN(ROW(SubCategory))+1, ""), 1)),"")}

Column G
1 Bur0''
2 Burx12
3 Adj0''
4 Salrs.
5

What I would like is a drop down in $G$2 where the values available are {Bur0'', Burx12, Adj0'', Salrs} if F2 = "Bureau"

Any and All help would be appreciated

Thanks,
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Can you something like this. I used a very simple example, but this illustrates how the formula works. I used data validation to select d. Hope this helps.
Mike Szczesny


Excel 2012
ABCDEFG
1TypeSubcategoryDetailsda
21aawb
31brc
41ckd
51dwse
62drxf
72drg
82e
93fg
103fh
113ij
123dk
133em
143fn
154gp
164gq
174dr
184ds
194dx
Sheet1
Cell Formulas
RangeFormula
E2{=IFERROR(INDEX($C$2:$C$19,SMALL(IF(FREQUENCY(IF($C$2:$C$19<>"",IF($B$2:$B$19=$D$1,MATCH($C$2:$C$19,$C$2:$C$19,0))),ROW($C$2:$C$19)-ROW($C$2)+1),ROW($C$2:$C$19)-ROW($C$2)+1),ROWS($E$2:E2)))," ")}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Forum statistics

Threads
1,214,907
Messages
6,122,185
Members
449,071
Latest member
cdnMech

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