Data Validation - Allow Any Value

mrbougles

New Member
Joined
Jan 27, 2012
Messages
7
Hi,

I wish to validate a cell (lets say A1) as below.

- If B1 = "cat" then allow dropdown List 1
- If B1 = "dog" then allow dropdown List 2
- If B1 = "fish" then allow free text / anything

Any ideas?

Help appreciated. Apologies if an answer has already been posted but i couldnt find it.

Cheers,
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Create three Lists Namely Cat, Dog, Fish. Also, create name called 'List' refers to =INDIRECT(Sheet1!$B$1,TRUE)
In Cell A1, add the validation. Allow List and source : =List.
Enter Cat or Dog or Fish in cell B1, validation is applied as per the selection.
 
Upvote 0
That's me logged off excel for the night but will give these a go tomorrow.

Mark 858 - I think you can have dependant dropdowns as I have this already. Could be mistaken / misunderstanding though.
 
Upvote 0
Create three Lists Namely Cat, Dog, Fish. Also, create name called 'List' refers to =INDIRECT(Sheet1!$B$1,TRUE)
In Cell A1, add the validation. Allow List and source : =List.
Enter Cat or Dog or Fish in cell B1, validation is applied as per the selection.


This seems to work. Thak you.
As long as the "fish" list is empty (basically a fake list) which is fine.
Not sure why it allows free text but I'm happy with the behaviour. I will now apply this to my use case.

Previously i nearly had a solution nearly working with various IF statement formulas along the lines of =if(B1="cat",catlist,if(B1="dog",doglist,"*"))
but I couldnt get it working 100%. I thought that "*" wildcard could be used to permit free text but i've had mixed results with this.

Thank you.
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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