Data validation source from two lists

scoha

Active Member
Joined
Jun 15, 2005
Messages
428
How can I change the source list for a data validation based on the assessment of a particular controllilng cell?

I have a cell that shows either; "Handicap" or 'Scratch" which is set by other processes in my worksheet.

The first column in my worksheet consists of Data Validation cells which select items from lists relevant to Handicap or Scratch

What I need is if the controlling cell is "Handicap" then the DV is driven by the Handicap DV list and if its "Scratch", the same DV is driven by the Scratch list.

Can anyone please help me with this?

Happy to use VBA if necessary but would love an example of right code

cheers
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
If your lists are named "Handicap" and "Scratch" and the picker is in cell A1, then in the data validation write:
=INDIRECT(A1)
 
Upvote 0
Another validation list source formula could be
=IF(A1="Handicap", $B$1:$B$10, IF(A1="Scratch", $B$11:$B$20, $C1:$C3))
 
Upvote 0

Forum statistics

Threads
1,203,174
Messages
6,053,932
Members
444,694
Latest member
JacquiDaly

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