naming data ranges
Microsoft Office TrainingThe UK's Number 1 for Microsoft Office Training add this page to your favourites/bookmarksBookmark page

view a printable version of this pagePrintable version
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Naming data ranges

Naming data ranges

The UK's most regular instructor-led training courses.
Training information: microsoft+excel+training+course · Excel training london · Microsoft Excel Training UK
See also · excel-courses-london · excel courses in london · excel microsoft training

resolvedResolved · Low Priority · Version 2003

No ranking yet
1 post
replyReplyWed 3 Feb 2010, 09:48Delegate Melanie said...

Melanie has attended:
Excel Advanced course

Naming data ranges

Hello,
I am familiar with naming ranges and using these to input into functions, however, if more data is subsequently entered to a worksheet I get frustrated by having to re-set all the ranges again.
Is there something I can do to prevent this from happening in the future?

Many thanks,
Melanie

Excel Intermediate 1 day course
Version Date Location Places
available
Book Next place rate (£)
Pay by
Card
Pay by
Invoice
2007 Thu 18 Mar 2010 Bloomsbury 1 Book now £224 £225
2003 Thu 18 Mar 2010 Limehouse 0 FULL    
2007 Mon 22 Mar 2010 Limehouse 4 Book now £224 £225
2003 Tue 23 Mar 2010 Southwark 7 Book now £193 £198
2007 Thu 25 Mar 2010 Rochester (Hoo) 0 FULL    
2003 Fri 26 Mar 2010 Limehouse 4 Book now £224 £225
Full Schedule: See all 79 Excel Intermediate course dates.
Bookings currently available until 23rd December 2010.

Diamond
1,055 posts
replyReplyWed 3 Feb 2010, 12:42Trainer Andrew said...

RE: Naming data ranges

Hi Melanie

Thank you for your question.

If your range spans several rows (for example from rows A1 to A7) and a new item is added in row A8 we can make the range automatically include the new row in the range.

Highlight the values in the column to be included in the range and use Insert > Name > Define and fill in the name box to describe your range e.g. My_Range. Before you click OK in the Refers to section put the following:

=OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1)

This uses OFFSET and COUNTA functions.
Click OK to complete naming the range.

Now we'll test it. Back in your sheet in a new cell set up a simple function to count how many items there are in your range.

=count(My_Range)
The result in this in this case would be 7

Now add a new item on the next row belowthe values in column A. When you press enter the count should increase by 1 as the new row is included in the range.

I hope this helps - do let us know if you have any further questions.

Kind regards,
Andrew

Tue 9 Feb 2010: Automatically marked as resolved.


Related articles

· Data Basics Using Excel
· Organisation At Your Fingertips - Take Control Of Your Life With Excel
· Microsoft Excel Cheat Sheet: Tips and Shortcuts
· Flexible uses for Excel at Home
· How Teachers Are Using Microsoft Excel To Enhance Learning in the Classroom

Please browse our web site to find out more about
microsoft+excel+training+course and other Microsoft training courses.

Excel tip:

Closing all your workbooks Quickly

Hold the SHIFT key down and using the mouse click on the file menu, it will now now CLOSE ALL rather than close. This closes all workbooks down but still leaves the application open.

View all Excel hints and tips


Rate this page:
2.1/5 (107 votes cast)
Institute of IT Training - Accredited Training Provider ILM
Microsoft Certified Partner
Microsoft Office Specialist Authorised Testing Centre (MOS and MCAS)

Prodigy Platinum Learning Partner

Institute of IT Training - Accredited Training Provider
McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
Association of Computer Trainers verified by visa, mastercard securecard