PC Review


Reply
Thread Tools Rate Thread

Conditional Dat Validation input

 
 
=?Utf-8?B?SWFu?=
Guest
Posts: n/a
 
      23rd Mar 2007
I want to create a cell data validation input based on a list but make it
conditional on a yes/no selection

Example, two columns :

Col A Col B
-------- ------------
Yes Prod x
No Item a
No Prod f
Yes Item g
No item b

The above lists are variable and cannot be sorted, but have assigned range
names, rngYesNo = a1:a5, rngList = b1:b5.

What I am trying to do is create a cell data validation elsewhere in
worksheet which will only show the items in rngList which have a Yes in
column A ; so in the above example it would only show Prod x and Item g.

thanks,
--
Regards & Thanks
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      23rd Mar 2007
Debra Dalgleish shows how to create dependent lists:
http://contextures.com/xlDataVal02.html

Ian wrote:
>
> I want to create a cell data validation input based on a list but make it
> conditional on a yes/no selection
>
> Example, two columns :
>
> Col A Col B
> -------- ------------
> Yes Prod x
> No Item a
> No Prod f
> Yes Item g
> No item b
>
> The above lists are variable and cannot be sorted, but have assigned range
> names, rngYesNo = a1:a5, rngList = b1:b5.
>
> What I am trying to do is create a cell data validation elsewhere in
> worksheet which will only show the items in rngList which have a Yes in
> column A ; so in the above example it would only show Prod x and Item g.
>
> thanks,
> --
> Regards & Thanks


--

Dave Peterson
 
Reply With Quote
 
okrob
Guest
Posts: n/a
 
      23rd Mar 2007
On Mar 23, 8:39 am, Dave Peterson <peter...@verizonXSPAM.net> wrote:
> Debra Dalgleish shows how to create dependent lists:http://contextures.com/xlDataVal02.html
>
>
>
>
>
> Ian wrote:
>
> > I want to create a cell data validation input based on a list but make it
> > conditional on a yes/no selection

>
> > Example, two columns :

>
> > Col A Col B
> > -------- ------------
> > Yes Prod x
> > No Item a
> > No Prod f
> > Yes Item g
> > No item b

>
> > The above lists are variable and cannot be sorted, but have assigned range
> > names, rngYesNo = a1:a5, rngList = b1:b5.

>
> > What I am trying to do is create a cell data validation elsewhere in
> > worksheet which will only show the items in rngList which have a Yes in
> > column A ; so in the above example it would only show Prod x and Item g.

>
> > thanks,
> > --
> > Regards & Thanks

>
> --
>
> Dave Peterson- Hide quoted text -
>
> - Show quoted text -


Dave, I looked at this, and from what I can tell, what Ian's asking
for cannot be found on Debra's site. I'm not sure it can be done
without some changes to the worksheet first. VLookup can't be used as
the list isn't sorted.

 
Reply With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      23rd Mar 2007
You're right. A couple more named lists would need to be created.

One with just yes and no
One with the options related to yes
one with the options related to no

But the original lists don't have to change (that's a stretch, huh? <bg>).

okrob wrote:
>
> On Mar 23, 8:39 am, Dave Peterson <peter...@verizonXSPAM.net> wrote:
> > Debra Dalgleish shows how to create dependent lists:http://contextures.com/xlDataVal02.html
> >
> >
> >
> >
> >
> > Ian wrote:
> >
> > > I want to create a cell data validation input based on a list but make it
> > > conditional on a yes/no selection

> >
> > > Example, two columns :

> >
> > > Col A Col B
> > > -------- ------------
> > > Yes Prod x
> > > No Item a
> > > No Prod f
> > > Yes Item g
> > > No item b

> >
> > > The above lists are variable and cannot be sorted, but have assigned range
> > > names, rngYesNo = a1:a5, rngList = b1:b5.

> >
> > > What I am trying to do is create a cell data validation elsewhere in
> > > worksheet which will only show the items in rngList which have a Yes in
> > > column A ; so in the above example it would only show Prod x and Item g.

> >
> > > thanks,
> > > --
> > > Regards & Thanks

> >
> > --
> >
> > Dave Peterson- Hide quoted text -
> >
> > - Show quoted text -

>
> Dave, I looked at this, and from what I can tell, what Ian's asking
> for cannot be found on Debra's site. I'm not sure it can be done
> without some changes to the worksheet first. VLookup can't be used as
> the list isn't sorted.


--

Dave Peterson
 
Reply With Quote
 
okrob
Guest
Posts: n/a
 
      23rd Mar 2007
On Mar 23, 9:57 am, Dave Peterson <peter...@verizonXSPAM.net> wrote:
> You're right. A couple more named lists would need to be created.
>
> One with just yes and no
> One with the options related to yes
> one with the options related to no
>
> But the original lists don't have to change (that's a stretch, huh? <bg>).
>
>
>
>
>
> okrob wrote:
>
> > On Mar 23, 8:39 am, Dave Peterson <peter...@verizonXSPAM.net> wrote:
> > > Debra Dalgleish shows how to create dependent lists:http://contextures.com/xlDataVal02.html

>
> > > Ian wrote:

>
> > > > I want to create a cell data validation input based on a list but make it
> > > > conditional on a yes/no selection

>
> > > > Example, two columns :

>
> > > > Col A Col B
> > > > -------- ------------
> > > > Yes Prod x
> > > > No Item a
> > > > No Prod f
> > > > Yes Item g
> > > > No item b

>
> > > > The above lists are variable and cannot be sorted, but have assigned range
> > > > names, rngYesNo = a1:a5, rngList = b1:b5.

>
> > > > What I am trying to do is create a cell data validation elsewhere in
> > > > worksheet which will only show the items in rngList which have a Yes in
> > > > column A ; so in the above example it would only show Prod x and Item g.

>
> > > > thanks,
> > > > --
> > > > Regards & Thanks

>
> > > --

>
> > > Dave Peterson- Hide quoted text -

>
> > > - Show quoted text -

>
> > Dave, I looked at this, and from what I can tell, what Ian's asking
> > for cannot be found on Debra's site. I'm not sure it can be done
> > without some changes to the worksheet first. VLookup can't be used as
> > the list isn't sorted.

>
> --
>
> Dave Peterson- Hide quoted text -
>
> - Show quoted text -


Ok... I see where you're going. It's not so much a stetch, but it
would be quite involved if the original list isn't a static list.

 
Reply With Quote
 
Debra Dalgleish
Guest
Posts: n/a
 
      23rd Mar 2007
You could create lists from formulas, as in the sample file here:

http://www.contextures.com/excelfiles.html

Under Data Validation, look for 'DV0048 - Dynamic Dependent Dropdowns
from Unsorted List'

Ian wrote:
> I want to create a cell data validation input based on a list but make it
> conditional on a yes/no selection
>
> Example, two columns :
>
> Col A Col B
> -------- ------------
> Yes Prod x
> No Item a
> No Prod f
> Yes Item g
> No item b
>
> The above lists are variable and cannot be sorted, but have assigned range
> names, rngYesNo = a1:a5, rngList = b1:b5.
>
> What I am trying to do is create a cell data validation elsewhere in
> worksheet which will only show the items in rngList which have a Yes in
> column A ; so in the above example it would only show Prod x and Item g.
>
> thanks,



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

 
Reply With Quote
 
=?Utf-8?B?SWFu?=
Guest
Posts: n/a
 
      28th Mar 2007

Many thanks... managed to get this to work based on the example suggested.

--
Regards & Thanks


"Debra Dalgleish" wrote:

> You could create lists from formulas, as in the sample file here:
>
> http://www.contextures.com/excelfiles.html
>
> Under Data Validation, look for 'DV0048 - Dynamic Dependent Dropdowns
> from Unsorted List'
>
> Ian wrote:
> > I want to create a cell data validation input based on a list but make it
> > conditional on a yes/no selection
> >
> > Example, two columns :
> >
> > Col A Col B
> > -------- ------------
> > Yes Prod x
> > No Item a
> > No Prod f
> > Yes Item g
> > No item b
> >
> > The above lists are variable and cannot be sorted, but have assigned range
> > names, rngYesNo = a1:a5, rngList = b1:b5.
> >
> > What I am trying to do is create a cell data validation elsewhere in
> > worksheet which will only show the items in rngList which have a Yes in
> > column A ; so in the above example it would only show Prod x and Item g.
> >
> > thanks,

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

 
Reply With Quote
 
Debra Dalgleish
Guest
Posts: n/a
 
      28th Mar 2007
You're welcome. Thanks for letting me know that it helped.

Ian wrote:
> Many thanks... managed to get this to work based on the example suggested.
>



--
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
Input validation using VBA VoxBox-Richard Microsoft Excel Programming 1 12th Aug 2008 02:40 PM
Input Validation using VBA VoxBox-Richard Microsoft Excel Programming 1 29th Jul 2008 01:13 PM
Help with VBA Input Validation Jim Microsoft Excel Programming 1 24th Jan 2005 10:29 PM
Input Validation Murphy Microsoft ASP .NET 2 19th Apr 2004 09:46 AM
Input Box with Validation Bill Y Microsoft Excel Misc 2 24th Jan 2004 01:34 AM


Features
 

Advertising
 

Newsgroups
 


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