PC Review


Reply
Thread Tools Rate Thread

Data validation and default values

 
 
Hall
Guest
Posts: n/a
 
      17th Mar 2007
I'm using data validation with dependent dropdowns (thank you Debra
Dalgleidh) where if I choose from a dropdown in one cell, the choices
available in the adjacent cell's dropdown automatically limit based on the
first cell's value.

OK. Now I need one step further.

Can I have that second cell's value get a default value based on what I
choose in the first cell?

For example, my first cell is country, the second is state.

I can choose in the first cell from a dropdown a list of countries, and if I
choose "USA" in this list, then the second cell limits its dropdown to the
states of the "USA". That part works.

But I also want it to be that when I make that first cell "USA", then I want
the second cell's value to automatically become the first value among the
list of states "Alabama", and of course, I can use the dropdown in the
second cell to change that.

Can anyone tell me how this can be done?

Thanks!


 
Reply With Quote
 
 
 
 
Debra Dalgleish
Guest
Posts: n/a
 
      17th Mar 2007
Not quite automatic, but you could enter the default value as the first
item in each list of cities, so it would be the first selection in every
dropdown list.
Or, you could use a formula in the dependent cell, e.g.:
=IF(B3="","",OFFSET(INDIRECT(B3),0,0,1,1))
but that would be overwritten if the user selected a different value
from the dropdown list.

Hall wrote:
> I'm using data validation with dependent dropdowns (thank you Debra
> Dalgleidh) where if I choose from a dropdown in one cell, the choices
> available in the adjacent cell's dropdown automatically limit based on the
> first cell's value.
>
> OK. Now I need one step further.
>
> Can I have that second cell's value get a default value based on what I
> choose in the first cell?
>
> For example, my first cell is country, the second is state.
>
> I can choose in the first cell from a dropdown a list of countries, and if I
> choose "USA" in this list, then the second cell limits its dropdown to the
> states of the "USA". That part works.
>
> But I also want it to be that when I make that first cell "USA", then I want
> the second cell's value to automatically become the first value among the
> list of states "Alabama", and of course, I can use the dropdown in the
> second cell to change that.
>
> Can anyone tell me how this can be done?
>
> Thanks!
>
>



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
custom data validation on cells with data validation values AKrobbins Microsoft Excel Worksheet Functions 2 21st Jun 2011 04:20 PM
Data Validation enter values with VBA XR8 Sprintless Microsoft Excel Programming 0 10th Apr 2010 02:14 AM
Re: Data Validation - combination of values Otto Moehrbach Microsoft Excel Misc 2 3rd Jan 2007 01:11 AM
Data Validation - but not restricting values =?Utf-8?B?Sm9uNTAwMQ==?= Microsoft Excel Misc 5 26th Jul 2006 03:25 AM
Data validation for 2 valid values Hall Microsoft Excel Discussion 2 15th Jan 2004 11:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:31 AM.