跳到主要內容

在Excel中輸入新數據後如何自動更新圖表?

假設您已經創建了一個圖表,用於根據工作簿中的一系列數據跟踪每日銷售額。 但是您需要每天更改或編輯數據數量,在這種情況下,您必須手動更新圖表,以使其包含新數據。 在將新數據添加到Excel中的現有圖表範圍時,是否有任何快速技巧可以幫助您自動更新圖表?

輸入新數據並創建表格後自動更新圖表

使用動態公式輸入新數據後自動更新圖表


箭頭藍色右氣泡 輸入新數據並創建表格後自動更新圖表

如果您具有以下範圍的數據和柱狀圖,現在您希望在輸入新信息時自動更新圖表。 在Excel 2007、2010或2013中,您可以創建一個表來擴展數據范圍,並且圖表將自動更新。 請這樣做:

文檔更新圖表1

1。 選擇數據范圍,然後單擊 枱燈插入 標籤,請參見屏幕截圖:

文檔更新圖表2

2。 在 創建表格 對話框,如果您的數據有標題,請檢查 我的桌子有標題 選項,然後單擊 OK。 看截圖:

文檔更新圖表3

3。 並將數據范圍格式化為表格,請參見屏幕截圖:

文檔更新圖表4

4。 現在,當您添加XNUMX月的值時,圖表將自動更新。 看截圖:

文檔更新圖表5

筆記:

1.您輸入的新數據必須與上述數據相鄰,這意味著新數據與現有數據之間沒有空白行或列。

2.在表中,您可以在現有值之間插入數據。


箭頭藍色右氣泡 使用動態公式輸入新數據後自動更新圖表

但是有時,您不想將範圍更改為表格,並且上述方法在Excel 2003或更早版本中不可用。 在這裡,我可以向您介紹一個複雜的動態公式方法。 以以下數據和圖表為例:

文檔更新圖表6

1。 首先,您需要為每列創建一個定義的名稱和一個動態公式。 請點擊 公式 > 定義名稱.

2。 在 新名字 對話框中,輸入 日期姓名 框,然後從中選擇當前工作表名稱 範圍 下拉列表,然後輸入 =偏移($ A $ 2,0,0,COUNTA($ A:$ A)-1) 配方成 框,請參見屏幕截圖:

文檔更新圖表7

3。 點擊 OK,然後重複上述兩個步驟,您可以使用以下範圍名稱和公式為每個系列創建一個動態範圍:

  • B列:紅寶石:= OFFSET($ B $ 2,0,0,COUNTA($ B:$ B)-1);
  • C列:James:= OFFSET($ C $ 2,0,0,COUNTA($ C:$ C)-1);
  • D列:Freda:= OFFSET($ D $ 2,0,0,COUNTA($ D:$ D)-1)

備註:在以上公式中, OFFSET 函數引用第一個數據點, COUNTA 指整個數據列。

4。 為每個列數據定義名稱和公式後,右鍵單擊圖表中的任何列,然後選擇 選擇數據,請參見屏幕截圖:

文檔更新圖表8

5。 在 選擇數據源 對話框,來自 圖例條目(系列) 部分,點擊 紅寶石 然後單擊 編輯 按鈕,在彈出 編輯系列 對話框中,輸入 = Sheet3!Ruby系列值 部分,請參見屏幕截圖:

文檔更新圖表9
-1
文檔更新圖表10

6. 然後點擊 OK 回到了 選擇數據源 對話框中,重複步驟5以更新其餘系列以反映其動態範圍:

  • James:系列值:= Sheet3!James;
  • Freda:系列值:= Sheet3!Freda

7。 設置完左側數據後,現在您需要單擊 編輯 按鈕下 水平(類別)軸標籤 要設置此選項,請參見屏幕截圖:

文檔更新圖表11
-1
文檔更新圖表12

8。 然後點擊 OK > OK 關閉 選擇數據源 對話框,完成這些步驟之後,您會發現在向工作表中添加新數據時,圖表會自動更新。

文檔更新圖表13

筆記:

  • 1.您必須以連續的方式輸入新數據,如果跳過行,則此方法將無法正常工作。
  • 2.如果輸入新的列數據,此方法將無效。

小費。如果您想將範圍內容從圖紙快速導出到圖形,請嘗試使用Kutools for Excel的 將範圍導出為圖形 如以下屏幕截圖所示。 它的完整功能不受限制,在[模塊745}天之內, 請下載並立即免費試用。

將工作簿中的圖形(圖片/圖表/形狀/所有類型)以Gif / Tif / PNG / JPEG格式導出到文件夾

如果工作簿中有多種圖形類型,並且您只想將工作表中的所有圖表導出為其他圖片類型的gif文件夾,則可以使用Kutools for Excel的Export Graphics utilty,只需3個步驟即可解決此問題工作。 點選取得全功能 30 天免費試用!
doc導出圖形
 
Kutools for Excel:擁有300多個便捷的Excel加載項,可以在30天內免費試用。

相關文章:

如何在Excel中向圖表添加水平平均線?

如何在Excel中創建組合圖並為其添加輔助軸?

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (21)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Good afternoon, I have a table for calculating points, on another sheet. is needed on another sheet so that there is an automatic sorting of commands by place
This comment was minimized by the moderator on the site
What if the months were in the columns and you had data series in the rows, how would you do the formula then?
This comment was minimized by the moderator on the site
Doesnt 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.
This comment was minimized by the moderator on the site
HI,
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 ??

Cheers,

Mufaddal
This comment was minimized by the moderator on the site
when 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 ?
This comment was minimized by the moderator on the site
It works well! Thank you! One question: 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?
This comment was minimized by the moderator on the site
Thanks 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.
This comment was minimized by the moderator on the site
did you manage to solve this issue? having same issue at the moment
This comment was minimized by the moderator on the site
Airtel mobile Bill Payment
This comment was minimized by the moderator on the site
A 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.
This comment was minimized by the moderator on the site
Great 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
This comment was minimized by the moderator on the site
You 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.
This comment was minimized by the moderator on the site
Hi 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.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations