Solved

Dynamic range in Excel 2010- how to set it up

Posted on 2013-12-20
6
511 Views
Last Modified: 2013-12-26
Normally I could do this, but am so tired brain is not working.  I have data in a worksheettaht starts at cell A5 and goes to column D.  I am trying to create a dynamic named ranged,but simply am too tiredto analyze the statement

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

To figure out how to get it to cover columns A:D, start at row 5 and then capture any changes the user makes.

Sandra
0
Comment
Question by:ssmith94015
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 23

Expert Comment

by:NBVC
ID: 39732050
Try:

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

this assumes nothing in column A above row 5
0
 

Author Comment

by:ssmith94015
ID: 39732145
Yes, there is data in rows 1 to 4 which is why I need I to start at row 5.  Right now, it is not working.
0
 
LVL 23

Assisted Solution

by:NBVC
NBVC earned 250 total points
ID: 39732190
Then perhaps:

=OFFSET(Sheet1!$A$5,0,0,COUNTA(Sheet1!$A:$A)-4,4)

or if some of the A1:A4 cells are filled,

=OFFSET(Sheet1!$A$5,0,0,COUNTA(Sheet1!$A:$A)-COUNTA(Sheet1!$A$1:$A$4),4)
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 48

Accepted Solution

by:
Martin Liss earned 250 total points
ID: 39732430
Here's an example formula where the first row is skipped and an explanation of the settings.

=OFFSET('Sheet Name'!$A$2,0,0,COUNTA('Sheet Name'!$A:$A)-1,1)
(the A$2 is the first cell in the range)

Legend
      •      'Sheet Name'!$A$2 - The referenced cell.
      •      0 - Indicates the number of rows to move. Positive numbers mean move down, and negative numbers mean move up.
      •      0 - Indicates the number of columns to move. Positive numbers mean move to the right, and negative numbers mean move to the left.
      •      COUNTA('Sheet Name'!$A:$A)-1- (Optional.) Indicates how many rows of data to return. This number must be a positive number.
      •      1  - (Optional.) Indicates how many columns of data to return. This number must be a positive number.
0
 

Author Closing Comment

by:ssmith94015
ID: 39740348
They both worked Nd the explanation helped.

Sandra
0
 
LVL 48

Expert Comment

by:Martin Liss
ID: 39740357
I'm glad I was able to help.

Marty - MVP 2009 to 2013
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question