Solved

How Can I Make a Graph in Excel Update it's Data Selection When I Add Rows?

Posted on 2013-06-13
4
183 Views
Last Modified: 2013-06-20
I have a spreadsheet that is updated monthly with a new row for that month.

I have formulas that calculate various percentages etc..., so there are always a hundred rows or so of data (but not months), however, unless there is a month, and consequently data for the month, the formulas either give zeroes, or Div/Zero Errors

I have a set of graphs based on selected ranges of the formulas.

I would like the range to be a formula that detects the new row (month) and expands its graphic range to accomodate the new row.

Can somebody show me how to do that please? Thank you.

Rex
0
Comment
Question by:Rex85
  • 2
4 Comments
 
LVL 10

Expert Comment

by:GasperK
ID: 39245801
You transform your data into an Excel Table (Home/Format as table)

Now you create a Chart based on that table and it will update automatically

Have a nice day...
0
 
LVL 10

Accepted Solution

by:
GasperK earned 500 total points
ID: 39245822
Here's an example, try adding columns and rows...
Sample.xlsx
0
 
LVL 13

Expert Comment

by:frankhelk
ID: 39246945
I presume your data is already in Excel ...

1st option:
Try to use entire columns as data source instead of a rectanguar area. Empty rows won't create graph elements. That way you can enter as much data as needed w/o the need to correct the data area.

2nd option:
Use named areas for the data, and leave 1 empty row at the end. A frame around the area would be helpful. When inserting new data, set the selection on that last, empty row and insert a new row above. The named areas would grow in sync.

See attached example ...

With both options you should keep your data without empty rows in between, because Excel won't draw a line from one point to another if there's an empty row between 'em in the data.
Sample.xlsx
0
 

Author Closing Comment

by:Rex85
ID: 39264018
Sorry fo the delay. That's what I was looking for. Thanks.

Rex
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now