Data Validation using 2 or more different ranges

zapppsr

Board Regular
Joined
Aug 19, 2010
Messages
189
Hi folks:

I have 2 names for 2 ranges:

Region1 - Range A2:A6 - Content: City1, City2, City3, City4, City5
Region2 - Range C2:C6 - Content: City6, City7, City8, City9, City10

I want to do a data validation, using a list that merges the 2 names (Region1 and Region2)

Normally, I would go to data validation and choose list and press F3 and select a name. Eg.: =Region1.

That works and the list displays Cities from 1-5

But I want to join the 2 names and the list in the field with data validation give me the Cities from 1-10.

Any tips or hints?

Thanks in advance!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi folks:

I have 2 names for 2 ranges:

Region1 - Range A2:A6 - Content: City1, City2, City3, City4, City5
Region2 - Range C2:C6 - Content: City6, City7, City8, City9, City10

I want to do a data validation, using a list that merges the 2 names (Region1 and Region2)

Normally, I would go to data validation and choose list and press F3 and select a name. Eg.: =Region1.

That works and the list displays Cities from 1-5

But I want to join the 2 names and the list in the field with data validation give me the Cities from 1-10.

Any tips or hints?

Thanks in advance!
You'd have to make a 3rd list that combines the other 2 lists and then use this new 3rd list as the source for the drop down.

Or, you can move Region2 to A7:A11 and then use A2:A11 as the source for the drop down.
 
Upvote 0
Hi:

Moving the data is not an option.

How do I combine the two names in one 3rd?

I tried naming with the 2 ranges selected. It accepted but when I try to use the new name, it does not work.

When I check the name, it shows this:

=Plan1!$A$2:$A$6;Plan1!$C$2:$C$6

The error says data must be in one row or one column.
 
Upvote 0
Hi:

Moving the data is not an option.

How do I combine the two names in one 3rd?

I tried naming with the 2 ranges selected. It accepted but when I try to use the new name, it does not work.

When I check the name, it shows this:

=Plan1!$A$2:$A$6;Plan1!$C$2:$C$6

The error says data must be in one row or one column.
Book1
ABCD
2City1City6_City1
3City2City7_City2
4City3City8_City3
5City4City9_City4
6City5City10_City5
7___City6
8___City7
9___City8
10___City9
11___City10
Sheet1

Formula enterd in D2 and copied down to D6:

=A2

Formula entered in D7 and copied down to D11:

=B2
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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