?
Solved

Excel 2010:  Table Range Question

Posted on 2014-01-06
2
Medium Priority
?
127 Views
Last Modified: 2014-01-18
I have a worksheet that contains a range, that range is named XYZ.  This range covers five days of data which in turn produces a chart line chart with five lines to include the data within those days.

Without having to manually adjust the range to include the newest days entry made each day, how can i make this so I can enter in the recent days data and it cover that day and the four prior days data automatically without me having to go in and manually adjust that table to cover those five days?  

Is there a way to tell excel to do this automatically so that it captures the new day and the four previous days so that the table grows dynamically without it having to be readjusted?
0
Comment
Question by:itsmevic
[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 Comments
 
LVL 12

Accepted Solution

by:
Harry Lee earned 2000 total points
ID: 39760766
itsmevic,

You can create a dynamic named range XYZ to drive your charts.

The following formula will look at only the last 5 rows of data in column B. You will have to modify it to which ever column your data is sitting in.

What is means is the start of the range will offset from $B$1 by the number of rows in column B minus 5. The height of the range is 5. Column offset is not defined, and range width is not defined. (5 because want to look at the last 5 rows.)

=OFFSET($B$1,COUNTA($B:$B)-5,,5,)

If you have problem with the offset formula in your name range setup, please upload a sample file and I can help you to figure out the formulas.
0
 
LVL 31

Expert Comment

by:gowflow
ID: 39761883
yes it can also be done via vba and for this we need you to upload a sample file so to see where is your range and how to go about doing it.
Rgds/gowflow
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article describes a serious pitfall that can happen when deleting shapes using VBA.
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

801 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