Auto update (extend) Name range

hocs

New Member
Joined
Nov 13, 2009
Messages
33
I have defined a Name called 'Fruit' ranging from cell A1 to A3, say:
A1 = Apple
A2 = Orange
A3 = Banana
and i'll use this Name 'Fruit' as data validation (list) on sheet2 (source: =Fruit).
If i were to add on A4 = Kiwi, A5 = Peach and so on.. Can the Name range 'Fuit' be extended automatically whenever a new item is added?
I know i can simply name the range from A1:A1000 but this will show lots of irrelavent blanks when i chose from validation drop down selector at sheet2.
Please advise.
Thanks!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi There,

You are talking about a dynamic range :)

Named ranges can contain formula's and by useing the offset function you can produce exactly what you are after.

So in your named range "Fruit" enter the formula

=OFFSET($A$1,,,COUNTA($A:$A))

Modify as needed.

I hope this helps
 
Upvote 0

Forum statistics

Threads
1,215,149
Messages
6,123,311
Members
449,095
Latest member
Chestertim

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