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

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
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,223,911
Messages
6,175,337
Members
452,636
Latest member
laura12345

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