Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default Several data ranges in data validation

I have a very simple problem that I just haven't been able to see clearly how
to deal with. In Cell A1 I want the user to be allowed to choose from a list
of project categories, so I've set the Data Validation there to be a list
with members chosen from the named range "ProjectCategories." In cell A2 I
then want the user to be allowed to choose a project, limited to the project
category already selected. So, if the user selects "Internal projects" in A1,
the data validation in A2 should be a list of the members of the named range
"InternalProjects".

The problem for me is setting up the data validation in A2. I can work with
a long IF() statement along the lines of "=IF(A2="Internal
Projects";InternalProjects;IF(...)...)" but that's inelegant, and I have too
many projects in the range ProjectCategories for this to be possible to fit
into the character-limit of data validation. There has to be a better way of
doing that, and I'm betting you know how.

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Several data ranges in data validation

You could build the names nicely.

Debra Dalgleish shows how:
http://contextures.com/xlDataVal02.html

Babymech wrote:

I have a very simple problem that I just haven't been able to see clearly how
to deal with. In Cell A1 I want the user to be allowed to choose from a list
of project categories, so I've set the Data Validation there to be a list
with members chosen from the named range "ProjectCategories." In cell A2 I
then want the user to be allowed to choose a project, limited to the project
category already selected. So, if the user selects "Internal projects" in A1,
the data validation in A2 should be a list of the members of the named range
"InternalProjects".

The problem for me is setting up the data validation in A2. I can work with
a long IF() statement along the lines of "=IF(A2="Internal
Projects";InternalProjects;IF(...)...)" but that's inelegant, and I have too
many projects in the range ProjectCategories for this to be possible to fit
into the character-limit of data validation. There has to be a better way of
doing that, and I'm betting you know how.

Thanks!


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default Several data ranges in data validation

Ah, should have clarified that all my ranges are dynamic and need to be
dynamic. As far as I can tell, this solution doesn't allow dynamic ranges -
just dynamic validation lists, or?

"Dave Peterson" wrote:

You could build the names nicely.

Debra Dalgleish shows how:
http://contextures.com/xlDataVal02.html

Babymech wrote:

I have a very simple problem that I just haven't been able to see clearly how
to deal with. In Cell A1 I want the user to be allowed to choose from a list
of project categories, so I've set the Data Validation there to be a list
with members chosen from the named range "ProjectCategories." In cell A2 I
then want the user to be allowed to choose a project, limited to the project
category already selected. So, if the user selects "Internal projects" in A1,
the data validation in A2 should be a list of the members of the named range
"InternalProjects".

The problem for me is setting up the data validation in A2. I can work with
a long IF() statement along the lines of "=IF(A2="Internal
Projects";InternalProjects;IF(...)...)" but that's inelegant, and I have too
many projects in the range ProjectCategories for this to be possible to fit
into the character-limit of data validation. There has to be a better way of
doing that, and I'm betting you know how.

Thanks!


--

Dave Peterson

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Several data ranges in data validation

That's what I recall, too.


Babymech wrote:

Ah, should have clarified that all my ranges are dynamic and need to be
dynamic. As far as I can tell, this solution doesn't allow dynamic ranges -
just dynamic validation lists, or?

"Dave Peterson" wrote:

You could build the names nicely.

Debra Dalgleish shows how:
http://contextures.com/xlDataVal02.html

Babymech wrote:

I have a very simple problem that I just haven't been able to see clearly how
to deal with. In Cell A1 I want the user to be allowed to choose from a list
of project categories, so I've set the Data Validation there to be a list
with members chosen from the named range "ProjectCategories." In cell A2 I
then want the user to be allowed to choose a project, limited to the project
category already selected. So, if the user selects "Internal projects" in A1,
the data validation in A2 should be a list of the members of the named range
"InternalProjects".

The problem for me is setting up the data validation in A2. I can work with
a long IF() statement along the lines of "=IF(A2="Internal
Projects";InternalProjects;IF(...)...)" but that's inelegant, and I have too
many projects in the range ProjectCategories for this to be possible to fit
into the character-limit of data validation. There has to be a better way of
doing that, and I'm betting you know how.

Thanks!


--

Dave Peterson


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Named Ranges Not Working in Data Validation dplum Excel Worksheet Functions 8 November 24th 07 01:32 PM
data validation, dynamic ranges Rich Hayes Excel Worksheet Functions 3 November 22nd 07 02:54 AM
Data Validation and Dynamic Ranges GSB Excel Discussion (Misc queries) 2 July 17th 07 06:24 AM
How do I use Named Ranges as Data Validation Lists? Chris Mitchell Excel Worksheet Functions 2 June 23rd 07 12:15 PM
Data validation using multiple ranges madbloke Excel Discussion (Misc queries) 4 June 9th 06 02:43 PM


All times are GMT +1. The time now is 07:05 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"