Validation two lists into one

raccoon588

Board Regular
Joined
Aug 5, 2016
Messages
118
I am trying to create a drop down list using Validation. I have a list of names on SSLFirst and on AuxFirst. I need to be able to combine these list so that they both show up in one drop down list in the cell. I can not seem to get them to come together. is it possible. i tried using offset but i get an error.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
This might be a lengthy answer, but it will get you what you want...

Imagine if you had one list starting in E3 and going on down, and nothing else is in that column,
And you had a second list starting in G3 and going on down, and nothing else is in that column...

I would combine them into one column and make them dynamic so that the lists could grow and shrink.
( Change to your ranges accordingly )

Put this formula into M3, and copy it on down to row 50. ( This range is for my example ).

It will copy over one list, and when that list runs out it will copy over the next list;

=IF(COUNTA($E:$E,$G:$G)<=COUNTA($M$1:$M2),"",IF(OFFSET($A$1,ROWS($A$1:$A1)+1,4,1,1)=0,OFFSET($A$1,COUNTA($M$1:M2)-COUNTA($E:$E)+2,6,1,1),OFFSET($A$1,ROWS($A$1:$A1)+1,4,1,1)))

Then go to Data Validation in the Data tab, choose " List ", and then for the " source " put this formula into it;

=OFFSET($A$1,2,12,ROWS($M3:$M$50)-COUNTBLANK($M3:$M$50),1)
 
Upvote 0
leeks
applespotatoesapples15657591565759applesa1000000a11
pearsbeanspears162868762004024beansb2000000b272
bananaspeasbananas21981812198181bananasc3000000c2703
onions99999999912136539leeksd4000000d13234
leeks99999999915489267onionse5000000e39965
99999999916286876pearsf6000000f104496
99999999916286876pearsg7000000g206827
99999999917019196potatoesh8000000h346958
999999999999999999I9000000I524889
999999999999999999j10000000j7406110
potatoes17019196999999999k11000000k9941411
beans2004024999999999l12000000l12854712
peas16286876999999999m13000000m16146013
onions15489267999999999n14000000n19815314
leeks12136539999999999o15000000o23862615
999999999999999999p16000000p28287916
999999999999999999q17000000q33091217
999999999999999999r18000000r38272518
999999999999999999s19000000s43831819
999999999999999999t20000000t49769120
u21000000u560844
v22000000v627777
col Dcol Fcol Hcol Icol Jcol Kw23000000w698490
x24000000x772983
y25000000y851256
z26000000z933309
each of my 2 lists in col D and col F are 10 rows deep
ie each contain blanks
col H is second list added to first list
ie 20 rows deep
using 2 lookup tables
I assign UNIQUE values to the first 3 letters
of each fruit or vegetable
giving them a unique code
now column J is the smallest, then the next smallest etc
and finally column K pulls the food name across
so K2:K21 is named mydropdown
and A1 is the dropdown with the 8 food names (the blanks are invisible at the bottom

<colgroup><col><col><col><col><col><col><col><col><col><col span="2"><col><col span="2"><col><col span="2"><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
( Change to your ranges accordingly )

I put that statement in intending for you to replace my formula ranges to your ranges.
If it is different tabs just put that within the formula...
 
Upvote 0

Forum statistics

Threads
1,216,004
Messages
6,128,218
Members
449,435
Latest member
Jahmia0616

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