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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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.
 
Upvote 0
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.
 
Upvote 0
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?
 
Upvote 0
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
 
Upvote 0
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)
 
Upvote 0
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)
 
Upvote 0

Forum statistics

Threads
1,214,868
Messages
6,122,005
Members
449,059
Latest member
mtsheetz

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
Back
Top