Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
matelot
 
Posts: n/a
Default Cascade Validation

I setup 2 dependent drop-down list using the validation and INDIRECT function
in EXCEL. Everything works fine when I have 2 name ranges that refer to
actual range. 1 cell with validation pointing to NAME1 and the other cell
would have =INDIRECT(cell) in the value box. However, when I try to setup 1
name range as =OFFSET(range,countif(row,condition),height) , it doesn't work
on my spreadsheet. It's giving me an error.
Is it a limitation from EXCEL? Any suggestion?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default Cascade Validation

Hi!

INDIRECT "expects" a TEXT representation of a reference.

When you use a defined FORMULA to create a dynamic range and then call that
in INDIRECT:

=INDIRECT(MyRange)

MyRange evaluates to a FORMULA, not a TEXT representaion of a reference.

One way to "get around" this is to use CHOOSE instead of INDIRECT. (CHOOSE
can have up to 29 values returned, so you'd need to have <=29 named ranges
to use as the source for the drop downs)

Suppose one drop down contains the named ranges: Rng1, Rng2, Rng3. This drop
down is in cell A1 and the drop down in cell B1 is dependent upon the
selection made from the drop down in cell A1.

Create a list of the named ranges somewhere in the sheet, say, J1:J3:

J1 = Rng1
J2 = Rng2
J3 = Rng3

Now, as the source for the dependent drop down in cell B1:

=CHOOSE(MATCH(A1,J1:J3,0),Rng1,Rng2,Rng3)

Biff

"matelot" wrote in message
...
I setup 2 dependent drop-down list using the validation and INDIRECT
function
in EXCEL. Everything works fine when I have 2 name ranges that refer to
actual range. 1 cell with validation pointing to NAME1 and the other cell
would have =INDIRECT(cell) in the value box. However, when I try to setup
1
name range as =OFFSET(range,countif(row,condition),height) , it doesn't
work
on my spreadsheet. It's giving me an error.
Is it a limitation from EXCEL? Any suggestion?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben
 
Posts: n/a
Default Cascade Validation

matelot

Have a look at Debra Dalgleish's site for instructions on setting dependent
drop-downs and dynamic ranges.

May be something there that will show what you have missed.

http://www.contextures.on.ca/xlDataVal02.html


Gord Dibben Excel MVP


On Thu, 17 Nov 2005 13:50:06 -0800, "matelot"
wrote:

I setup 2 dependent drop-down list using the validation and INDIRECT function
in EXCEL. Everything works fine when I have 2 name ranges that refer to
actual range. 1 cell with validation pointing to NAME1 and the other cell
would have =INDIRECT(cell) in the value box. However, when I try to setup 1
name range as =OFFSET(range,countif(row,condition),height) , it doesn't work
on my spreadsheet. It's giving me an error.
Is it a limitation from EXCEL? Any suggestion?

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
matelot
 
Posts: n/a
Default Cascade Validation

Biff,
Thanks for the info. It works like a charm!

"Gord Dibben" wrote:

matelot

Have a look at Debra Dalgleish's site for instructions on setting dependent
drop-downs and dynamic ranges.

May be something there that will show what you have missed.

http://www.contextures.on.ca/xlDataVal02.html


Gord Dibben Excel MVP


On Thu, 17 Nov 2005 13:50:06 -0800, "matelot"
wrote:

I setup 2 dependent drop-down list using the validation and INDIRECT function
in EXCEL. Everything works fine when I have 2 name ranges that refer to
actual range. 1 cell with validation pointing to NAME1 and the other cell
would have =INDIRECT(cell) in the value box. However, when I try to setup 1
name range as =OFFSET(range,countif(row,condition),height) , it doesn't work
on my spreadsheet. It's giving me an error.
Is it a limitation from EXCEL? Any suggestion?

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
TWO QUESTIONS: Validation & Spacing...PLEASE HELP Polina Excel Discussion (Misc queries) 3 July 29th 05 02:36 AM
data validation lists [email protected] Excel Discussion (Misc queries) 5 June 25th 05 07:44 PM
named range, data validation: list non-selected items, and new added items KR Excel Discussion (Misc queries) 1 June 24th 05 05:21 AM
Effect of Conditional Formatting, Data Validation Bill Sturdevant Excel Discussion (Misc queries) 1 January 25th 05 11:50 PM
Data Validation Window? Ken Excel Discussion (Misc queries) 1 January 11th 05 10:48 PM


All times are GMT +1. The time now is 11:05 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"