How to auto update a chart after entering new data in Excel?
Supposing you have created a chart to track the daily sales based on a range of data in your workbook. But you need to change or edit the number of the data every day, in this case, you have to update the chart manually so it includes the new data. Are there any quick tricks to help you auto update a chart when you add new data to an existing chart range in Excel?
If you have the following range of data and column chart, now you want the chart update automatically when you enter new information. In Excel 2007, 2010 or 2013, you can create a table to expand the data range, and the chart will update automatically. Please do as this:
1. Select the data range and click Table under Insert tab, see screenshot:
2. In the Create Table dialog box, if your data has headers, please check My table has headers option, then click OK. See screenshot:
3. And the data range is formatted as a table, see screenshot:
4. Now, when you add values for June, and the chart will be updated automatically. See screenshot:
1. Your new entering data must be adjacent to the above data, it means there is no blank rows or columns between the new data and the existing data.
2. In the table, you are able to insert data between the existing values.
But sometimes, you don’t want to change the range to table, and the above method is not available in Excel 2003 or earlier version. Here I can introduce you a complex dynamic formula method. Take the following data and chart for example:
1. First, you need to create a defined name and a dynamic formula for each column. Click Formulas > Define Name.
2. In the New Name dialog box, enter Date into the Name box, and choose current worksheet name from Scope drop down list, and then enter =OFFSET($A$2,0,0,COUNTA($A:$A)-1) formula into the Refers to box, see screenshot:
3. Click OK, and then repeat the above two steps, you can create a dynamic range for each series using the following range names and formulas:
- Column B: Ruby: =OFFSET($B$2,0,0,COUNTA($B:$B)-1);
- Column C: James: =OFFSET($C$2,0,0,COUNTA($C:$C)-1);
- Column D: Freda: =OFFSET($D$2,0,0,COUNTA($D:$D)-1)
Note: In the above formulas, the OFFSET function refers to the first data point, and the COUNTA refers to the entire column of data.
4. After defining the names and formulas for each column data, then right click any column in your chart, and choose Select Data, see screenshot:
5. In the Select Data Source dialog box, from Legend Entries(Series) section, click Ruby and then click the Edit button, in the popped out Edit Series dialog, enter =Sheet3!Ruby under Series values section, see screenshots:
6. And then click OK to return to the Select Data Source dialog, repeat the step 5 to update the remaining series to reflect their dynamic ranges:
- James: Series values: =Sheet3!James;
- Freda: Series values: =Sheet3!Freda
7. After setting the left data, now you need to click Edit button under Horizontal (Category) Axis Labels to set this option, see screenshots:
8. Then click OK > OK to close the Select Data Source dialog, after finishing these steps, you'll find that the chart updates automatically when you add new data to the worksheet.
- 1. You must enter new data in a contiguous manner, if you skip rows, this method will not work as expected.
- 2. If you enter new column data, this method will not take effect.
Export graphics (Pictures/Charts/Shapes/All Types) from workbook to a folder as Gif/Tif/PNG/JPEG
|If there are multiple type of graphics in a workbook, and you just want to export all charts across worksheet to a folder as gif of other type of picture, you can use Kutools for Excel's Export Graphics utilty, which only need 3 steps to handle this job . Click for full-featured 30 days free trial!|
|Kutools for Excel: with more than 300 handy Excel add-ins, free to try with no limitation in 30 days.|
You are guest
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 5 months agoDoesnt work or not applicable. My chart already refers to the correct data automatically... data is directed to table columns. The problem is the GRAPH wont update.
To post as a guest, your comment is unpublished.· 1 years agoHI,
This trick doesnt work if you want to add new columns. This trick is for fixed columns. What if there is a data yearwise in columns and every year a new year column is added so how will it get added to the chart ??
Any idea you can suggest ??
To post as a guest, your comment is unpublished.· 1 years agowhen I type in cell any no. like - 210 it reflect as = 2.10 , no formula is taking place why? any no. shows devide by 100 as I mentioned , decimal comes automatically how to resolve this ?
To post as a guest, your comment is unpublished.· 3 years agoIt works well! Thank you!
what if my drop down list is not on the same sheet with the "table" where i have datas?
how can I modify the function?
To post as a guest, your comment is unpublished.· 3 years agoThanks for the message. But I do not get your question clearly, why don't you upload a screenshot of your problem for me to understand easily? More description, easier to understand. Thank u.
To post as a guest, your comment is unpublished.· 3 years agodid you manage to solve this issue? having same issue at the moment
To post as a guest, your comment is unpublished.· 4 years agoAirtel mobile Bill Payment
To post as a guest, your comment is unpublished.· 4 years agoA chart's ranges can depend on names or not. If a chart range depends on, say A1:E5, and you insert a row at row 3, and a column at column C, the chart will automatically depend on A1:F6. Similarly, if you have a name defined as A1:E5, whether you use it as a chart's range or not, and you insert a column and row at C3, the name's definition will expand to A1:F6. But in either case, if you insert a column and A or E (the endpoints), or a row at 1 or 5, the behavior isn't so well defined: maybe the chart range or name's definition will expand; maybe it won't. To answer Melissa, you'd have to insert rows or columns before or to the left of the chart range.
I think it's better to use names, because names can be defined using formulas that involve OFFSET, COUNT, INDEX, MATCH, whatever else. So the better answer to Melissa is to define a name for one cell, namely the last of the eight columns or rows, then define the name in term of an OFFSET from that cell: OFFSET(cell,-8,-8,8,8) to go back and up eight cells and use an 8x8 range.
To post as a guest, your comment is unpublished.· 4 years agoGreat reminder as I don't do these kind of chart functions that often.
As an improvement you could mention how to edit defined names in the name manager but I'm not sure if the editing actually enables the function of the adding rows to work completely
To post as a guest, your comment is unpublished.· 4 years agoYou can define chart ranges with names or not -- in either case if you physically insert rows or columns in the middle of a range, it automatically expands.
I think it's best to use names for charts and lots of other things, because you can define names as formulas, not just straight ranges. You must use OFFSET (which resizes too), because that returns a range, but its parameters, which are numbers, can be specified with formulas that use INDEX, MATCH, COUNT, SUM, VLOOKUP, any crazy formula you want. Melissa, that's the best way to handle your situation: give a name to one bookmark cell, then define another name to be offset from that -8 rows or columns, and resize it 8 rows or columns.
To post as a guest, your comment is unpublished.· 4 years agoHi there, thank you so much for this tutorial.
I am just wondering, how to apply this method to the data that updated in the column not in the row? is there any additional changes that I need to do besides offset formula? thank you.
To post as a guest, your comment is unpublished.· 4 years agosalaam,
the problem still exists.
i have main data in one sheet and the linked data (for the chart) in another sheet.
so when main data changes the chart can't be updated
To post as a guest, your comment is unpublished.· 4 years agoThis is GREAT! However, I need my graph to sho the last 8 quarter of data, not just keep adding more quarters. Is there a way to do that?
To post as a guest, your comment is unpublished.· 5 years agoYou should probably add the setting piece to updating graphs. By going under file, options, Formulas, automatic update data.
To post as a guest, your comment is unpublished.· 6 years agoThe table method allows you to add both categories and series dynamically. Is there any way to do that with the formula method without having to define a name for each series?
To post as a guest, your comment is unpublished.· 6 years agoHi All,
How to update the raw data having 28 tabs in template which also contains 28 tabs by using shortcut methods.
Please suggest on this.
To post as a guest, your comment is unpublished.· 6 years agoThank you! This is great. However I'm having hard time adjust these steps for my situation - I have dates going horizontally (flipped table), so every week I would be adding numbers on the right vs on the bottom. I tried adjusting the formula so that instead of COUNTA($A:$A) or COUNTA($B:$B) that stipulated the column, I have COUNTA($1:$1) or COUNTRA($2:$2) but that didn't work. Any advice?
To post as a guest, your comment is unpublished.· 6 years agowhat about adding additional data to the table so that it updates the charts? I am having a very difficult time with this. The charts are not holding the full column data ranges but revert to specific cell locations so new data does not automatically appear.
To post as a guest, your comment is unpublished.· 6 years agoThanks for this. You've speeded up my monthly reporting and generation of all those "absolutely necessary" KPI's