Data validation based on user input in adjacent cell

Damo71

Board Regular
Joined
Aug 17, 2010
Messages
88
Hi

On sheet1
I have named ranges "men", "women" and "children"

On sheet 2,
In Cell A1 I input "male", "female" or "minor". In B1 I need the data validation to show the names from the named range "women" if A1 contains "female", and so on,

is this possible?

thanks
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
If you define the ranges:

men women children
Then you need to put:
men,women,children

In validationlist in Sheet2 Range("A1")

And put this value in Sheet(2) Range("B1") validation source:

=INDIRECT($A$1)

Why are you trying to make this hard on yourself

Name the ranges the same as the values you want to see in the data validation list.

Otherwise we will need to use vba.
 
Last edited:
Upvote 0
Other way is to give ranges two names

Give it the name "men" and also give it the name "male"

And the same with the other ranges

You can give a range two different names.

Then put "male", "female" "minor" in Range("A1")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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