Validation list based upon result of another validation list

rrenis

Board Regular
Joined
Oct 22, 2004
Messages
120
Hi - don't know if this is possible but I've got 4 lists in columns A to D. I was intending to have a validation list (in E4) where the user chooses one of four headings (relating to columns A-D) - then depending on the heading chosen a second validation list (E5) displays the relevant list to that heading, e.g. choice 1 would be column A, choice 2 column B and so on.

Could anyone point me in the right direction please?

Cheers,
rrenis :biggrin:
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Good evening,

Let's say in a1 is my column header NAME
in b1 is my column header ADDRESS
in c1 is ......AGE
I will create a named range called HEADERS
Select a1:c1 and do inserT a name call it HEADERS.
(I suppose you know how to create a named range)

Then you will select the entire columns A TO C and do Menu
Insert...
Name...
Create...
Select only top row


In e1, you will have a data validation,
using Menu...
Data...
Validation....
List....
in Source... you will type
=headers

in f1 you will have a data validation same as above

List...
in source you will HAVE:
=INDIRECT(E1)

This is it

Meaning when you change e1, f1 will change accordingly.
 
Upvote 0
Hi sunnyland - I get the following error when I enter =OFFSET(E1) in the validation list for F1...

"The Source currently evaluates to an error"

I'm sure I'm doing something wrong here but does anyone have any ideas what? :oops:

cheers,
rrenis
 
Upvote 0
Sorry - I meant to type INDIRECT :oops:

Thanks for the link onlyadrafter - I'll check it out! :biggrin:

cheers,
rrenis :)
 
Upvote 0
From reading sunnylands posts and then the link posted by onlyadrafter this is definitely the way to acheive what I'm after but I still keep on getting the error when trying to insert INDIRECT in the Validation list. Has anyone come across the error I'm getting that could shed some light onto what I'm doing wrong? :oops:

cheers,
rrenis :)
 
Upvote 0
Hi - managed to get it working - the problem was that my headings were in the following format > 01 Text, 02 Text etc and these were displayed as _01_Text, _02_Text in the names and therefore didn't correspond to the selection made in the first validation list. Many thanks to sunnyland and onlyadrafter for your help.

By the way if anyone knows of a way to use a heading such as 01 Text etc I'd appreciate it :biggrin:

cheers,
rrenis :biggrin:
 
Upvote 0

Forum statistics

Threads
1,213,544
Messages
6,114,249
Members
448,556
Latest member
peterhess2002

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