Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 852
Default Dependent drop down dynamic range formula, off sheet.

Dependent drop downs on Sheet1.
First drop down in B2 & source is =Division_List
Second drop down in C2 & source is INDIRECT(B2)

Division_List is a list of 16 named ranges DIVISION_1 , _2 , _3 ... _16. And these are on another sheet.

Those names are the Headers of 16 columns on sheet CSI_DETAILED with each list row 2 to a variable row.
All work fine with non dynamic formulas for the ranges.

Want to swat to dynamic ranges for each DIVISION_n

This refers to named range DIVISION_1 on the sheet CSI_DETAILED.

=OFFSET(CSI_DETAILED!$D$2,0,0,COUNTA(CSI_DETAILED! $D:$D),1)

Does not evaluate to an error but the value in the name manager = (...).

Works in a sample drop down on the CSI_DETAILED sheet, shorter or longer list is picked up in the test drop down.

Should I be remembering that you cannot use the offset formula from another sheet for this?

I googled plenty of samples and the formulas are the same, but no mention about other sheets/off sheet.

Thanks,
Howard

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Dependent drop down dynamic range formula, off sheet.

Hi Howard,

Am Fri, 19 Dec 2014 00:17:54 -0800 (PST) schrieb L. Howard:

Dependent drop downs on Sheet1.
First drop down in B2 & source is =Division_List
Second drop down in C2 & source is INDIRECT(B2)


in data validation you cannot refer to other sheets. You have to use
global names (workbook scope)
If it does not help please send me the file


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Dependent drop down dynamic range formula, off sheet.

Hi again,

Am Fri, 19 Dec 2014 00:17:54 -0800 (PST) schrieb L. Howard:

Dependent drop downs on Sheet1.
First drop down in B2 & source is =Division_List
Second drop down in C2 & source is INDIRECT(B2)


the depending list must have a fix range. It will not work with dynamic
range names


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Dependent drop down dynamic range formula, off sheet.

Hi again,

Am Fri, 19 Dec 2014 10:04:47 +0100 schrieb Claus Busch:

the depending list must have a fix range. It will not work with dynamic
range names


if you want dynamic names in CSI_DETAILED you have to do it with VBA.
In a standard module:

Sub myNames()
Dim LCol As Long, LRow As Long
Dim i As Long

With Sheets("CSI_DETAILED")
'Counts the columns in row1. Modify to suit
LCol = .Cells(1, Columns.Count).End(xlToLeft).Column
For i = 1 To LCol
LRow = .Cells(Rows.Count, i).End(xlUp).Row
ThisWorkbook.Names.Add .Cells(1, i), _
RefersTo:=.Range(.Cells(2, i), .Cells(LRow, i))
Next
End With

End Sub

In sheet module of sheet "CSI_DETAILED":

Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A1:J100")) Is Nothing _
Then Exit Sub

Call myNames
End Sub

If you change the data in sheet "CSI" the macro myNames will run and
change the range of the names


Regards
Claus B.
--
Vista Ultimate / Windows7
Office 2007 Ultimate / 2010 Professional
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 852
Default Dependent drop down dynamic range formula, off sheet.

On Friday, December 19, 2014 1:20:27 AM UTC-8, Claus Busch wrote:
Hi again,

Am Fri, 19 Dec 2014 10:04:47 +0100 schrieb Claus Busch:

the depending list must have a fix range. It will not work with dynamic
range names


if you want dynamic names in CSI_DETAILED you have to do it with VBA.
In a standard module:

Okay, thanks Claus.

I will work with the event code you posted, I already have one going on the sheet.

Will see what I can do.

I have to be away from my computer for awhile, but I will get back for more help or to let you know I got it going.

Thanks again.
Howard


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,872
Default Dependent drop down dynamic range formula, off sheet.

Hi Howard,

Am Freitag, 19. Dezember 2014 11:49:02 UTC+1 schrieb L. Howard:

I have to be away from my computer for awhile, but I will get back for more help or to let you know I got it going.


if you need help please send me a mail. My news Server is down.

Kind Regards
Claus
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,514
Default Dependent drop down dynamic range formula, off sheet.

the depending list must have a fix range. It will not work with
dynamic
range names


Not true, Claus! I use dynamic ranges for all DV lists so they
auto-adjust for additions/deletions. Dependant lists still work with
INDIRECT(). Have a look here...

https://app.box.com/s/23yqum8auvzx17h04u4f

...at IncomeExpense.xlt!

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,514
Default Dependent drop down dynamic range formula, off sheet.

Note that you'll need to use JKP's NameManager addin to see hidden
names!

--
Garry

Free usenet access at http://www.eternal-september.org
Classic VB Users Regroup!
comp.lang.basic.visual.misc
microsoft.public.vb.general.discussion


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 with dynamic named range offsheet source list L. Howard Excel Worksheet Functions 14 May 22nd 14 08:38 PM
How to create 2 dependent drop down lists from 1 original drop dow Caroline Excel Discussion (Misc queries) 5 May 1st 09 02:19 PM
Data Validation via Dependent List defined by Dynamic Range Lee4 Excel Discussion (Misc queries) 3 August 20th 08 04:45 PM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
dependent drop down boxes and dynamic ranges philcud Excel Worksheet Functions 2 September 1st 05 01:03 PM


All times are GMT +1. The time now is 03:23 AM.

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

About Us

"It's about Microsoft Excel"