Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
Solved

# Dynamic range in Excel 2010- how to set it up

Posted on 2013-12-20
Medium Priority
537 Views
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
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
• 2
• 2
• 2

LVL 23

Expert Comment

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

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

NBVC earned 1000 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

LVL 49

Accepted Solution

Martin Liss earned 1000 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

ID: 39740348
They both worked Nd the explanation helped.

Sandra
0

LVL 49

Expert Comment

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

Marty - MVP 2009 to 2013
0

## Featured Post

Question has a verified solution.

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

Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to usâ€¦
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaacâ€¦
###### Suggested Courses
Course of the Month8 days, 19 hours left to enroll