ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Validated list - how to make conditional (https://www.excelbanter.com/excel-discussion-misc-queries/234209-validated-list-how-make-conditional.html)

smartgal

Validated list - how to make conditional
 
Okay, we tried the solution below but it won't let us have a validated
drop-down list - it tells us that we have restricted values. We've attacked
this a number of ways and just can't seem to get there.

To recap -
1) we have a field in which the user selects a location (this is a validated
list)
2) we have a field in which the user chooses a salesperson (until the
addition of a second location, this was also a validated list - the second
location has complicated things measurably . . .)
3) when the location is selected, we want the user to pick a salesperson
from a validated list, and for the choices to be dependent on which location
has been selected (since s/p are unique to the location and don't appear in
both locations).

Open to more suggestions! Thanks!

See this:

http://contextures.com/xlDataVal02.html

--
Biff
Microsoft Excel MVP


"smartgal" wrote in message
...

I have a cell in which the user can select a location. Based on the
location
they select, I want a cell elsewhere in the spreadsheet to display only
the
sales personnel assigned to the location they've chosen (which is a
validated
list).

I"m sure there's some "if" statement but I can't make it work. Help!In
the
instance below, if they choose the location US, I only want them to be
able
to select, for their s/p, Bob or Steve.

Loc S/P
01-USA Bob
01-USA Steve
29-CAN Ken
29-CAN Mark

Thanks!






JLatham

Validated list - how to make conditional
 
I'm not sure what the issue is. Go through the Contextures process again
maybe. I just followed it and seems to work just fine for me.

I created a list with 3 locations
Atlanta
Boston
Charleston

I Named that list LocationsList

Then I created a list with 5 salespersons in it and Named it Atlanta,
another list with more names in it an named it Boston, and a 3rd list with
more names and named it Charleston.

In A2 I used Data Validation, chose List and set the source as =LocationsList
In another cell (B2) I again used Data Validation and chose List and set the
Source as
=INDIRECT(A2)
works for me - choose a city in A2 and the list in B2 changes accordingly.

Hope this helps.


"smartgal" wrote:

Okay, we tried the solution below but it won't let us have a validated
drop-down list - it tells us that we have restricted values. We've attacked
this a number of ways and just can't seem to get there.

To recap -
1) we have a field in which the user selects a location (this is a validated
list)
2) we have a field in which the user chooses a salesperson (until the
addition of a second location, this was also a validated list - the second
location has complicated things measurably . . .)
3) when the location is selected, we want the user to pick a salesperson
from a validated list, and for the choices to be dependent on which location
has been selected (since s/p are unique to the location and don't appear in
both locations).

Open to more suggestions! Thanks!

See this:

http://contextures.com/xlDataVal02.html

--
Biff
Microsoft Excel MVP


"smartgal" wrote in message
...

I have a cell in which the user can select a location. Based on the
location
they select, I want a cell elsewhere in the spreadsheet to display only
the
sales personnel assigned to the location they've chosen (which is a
validated
list).

I"m sure there's some "if" statement but I can't make it work. Help!In
the
instance below, if they choose the location US, I only want them to be
able
to select, for their s/p, Bob or Steve.

Loc S/P
01-USA Bob
01-USA Steve
29-CAN Ken
29-CAN Mark

Thanks!







All times are GMT +1. The time now is 02:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com