Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
 
Posts: n/a
Default Filling drop down box

hi,

I have a drop down box in a cell. Based on a value of
anohter cell I have to fill my drop down box. what i mean
is, say if
GreeNPackage is "No" then I want the drop down box to fill
a range of values. But if the GreeNPackage is "Yes" then I
want the drop down box to fill another set of values. how
can i do this?

plenty of thanks

  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

In the data validation, allow list source box, you can
enter a formula to test for YES or NO:

=IF(E1="YES",F1:F10,G1:G10)

How it works:

If cell E1=YES use the values in F1:F10 as the source for
the dropdown, otherwise, use G1:G10 as the source.

Biff

-----Original Message-----
hi,

I have a drop down box in a cell. Based on a value of
anohter cell I have to fill my drop down box. what i mean
is, say if
GreeNPackage is "No" then I want the drop down box to

fill
a range of values. But if the GreeNPackage is "Yes" then

I
want the drop down box to fill another set of values. how
can i do this?

plenty of thanks

.

  #3   Report Post  
Nick
 
Posts: n/a
Default

Instead of drop down you can use data validation list and create to
set of range names:

First will have value yes and no and then we will have to create to
other ranged names, named yes and no. in those ranges you keep your
parameters that you want to show as option to users.

Then in the cells where you want to have yes/no answer you set data
validation to you Ye/no named range. Then in the cell where you want
to show values for yes or no, you set data validation to
=(indirect([Address of yes/no cell]). So when the user is selecting
let's say yes, the list validation will be set by indirect to named
range yes.

This method will avoid writing any VB code..

If any questions, contact me.

Regards,

Nick


wrote in message ...
hi,

I have a drop down box in a cell. Based on a value of
anohter cell I have to fill my drop down box. what i mean
is, say if
GreeNPackage is "No" then I want the drop down box to fill
a range of values. But if the GreeNPackage is "Yes" then I
want the drop down box to fill another set of values. how
can i do this?

plenty of thanks

  #4   Report Post  
 
Posts: n/a
Default

hey thanks nick..

it works :-)
gr8!
-----Original Message-----
Instead of drop down you can use data validation list and

create to
set of range names:

First will have value yes and no and then we will have to

create to
other ranged names, named yes and no. in those ranges you

keep your
parameters that you want to show as option to users.

Then in the cells where you want to have yes/no answer

you set data
validation to you Ye/no named range. Then in the cell

where you want
to show values for yes or no, you set data validation to
=(indirect([Address of yes/no cell]). So when the user is

selecting
let's say yes, the list validation will be set by

indirect to named
range yes.

This method will avoid writing any VB code..

If any questions, contact me.

Regards,

Nick


wrote in message

...
hi,

I have a drop down box in a cell. Based on a value of
anohter cell I have to fill my drop down box. what i

mean
is, say if
GreeNPackage is "No" then I want the drop down box to

fill
a range of values. But if the GreeNPackage is "Yes"

then I
want the drop down box to fill another set of values.

how
can i do this?

plenty of thanks

.

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
drop down list question [email protected] Excel Discussion (Misc queries) 1 January 20th 05 06:53 PM
How to change fonts in drop down list Dennis Excel Discussion (Misc queries) 1 January 12th 05 01:49 PM
How do you create a drop down list? Aviator Excel Discussion (Misc queries) 2 December 28th 04 03:07 PM
Filling drop down box Nick Excel Discussion (Misc queries) 0 November 25th 04 07:49 PM
Drop List Referencing Boony Excel Worksheet Functions 2 November 11th 04 11:42 AM


All times are GMT +1. The time now is 01:11 AM.

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

About Us

"It's about Microsoft Excel"