Dynamic link list

goofy78270

Well-known Member
Joined
May 16, 2007
Messages
555
Is it possible to create a dynamic link list?

I am looking to create a list that varies in size by day and i do not want to have the extra blanks in the list by accounting for the max number of entries. I would like the list to only pull in values within a range and not account for the blanks.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

Dan Waterloo

Well-known Member
Joined
Jan 4, 2007
Messages
876
Which version of Excel are you using?
If you are on Excel 2003 or later you can create a dynamic list by using /Data/List.
 

FlyingKiwi

New Member
Joined
Aug 1, 2007
Messages
6
This code does it:

=OFFSET(startcell,0,0,COUNTA(column),1)

( ie =OFFSET('sheetname'!$D$6,0,0,COUNTA('sheetname'!$D:$D),1)
this will start counting the list from D6 and go down for whatever the count is for the column.
 

goofy78270

Well-known Member
Joined
May 16, 2007
Messages
555
I am not sure if this works because when i put it in the input range of the list box, it clears itself out when I say OK. Is there a technique or step I am missing?
 

FlyingKiwi

New Member
Joined
Aug 1, 2007
Messages
6
Sorry I didn't think it through, I missed a step.
First use the code above to create a 'dynamic named range' then link this to your input range in the list box
 

goofy78270

Well-known Member
Joined
May 16, 2007
Messages
555
I added the following code to a sheet and it only returns the first value. Should this code be within a macro?
Code:
=OFFSET(D2,0,0,COUNTA(D:D),1)
 

FlyingKiwi

New Member
Joined
Aug 1, 2007
Messages
6
The code isn't need to be in a macro. This doesn't use VBA only excel functions.
Try using absolute cell references instead of relative cell references
(ie $D$2 instead of D2 and $D:$D instead of D:D)
 

Forum statistics

Threads
1,181,102
Messages
5,928,062
Members
436,586
Latest member
latintxn

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top