Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Drop Down with dynamic named range offsheet source list | Excel Worksheet Functions | |||
How to create 2 dependent drop down lists from 1 original drop dow | Excel Discussion (Misc queries) | |||
Data Validation via Dependent List defined by Dynamic Range | Excel Discussion (Misc queries) | |||
Dynamic Range with unused formula messing up x axis on dynamic graph | Charts and Charting in Excel | |||
dependent drop down boxes and dynamic ranges | Excel Worksheet Functions |