跳到主要內容

如何在Excel中每5行或每列平均一次?

在Excel中,是否曾經嘗試過對每5行或每列平均一次,也就是說,您需要執行以下操作:= average(A1:A5),= average(A6:A10),= average(A11:A15) ,…,當然,您可以應用“平均值”功能來每次獲取每5個單元格的平均值,但是,如果列表中有成千上萬個單元格,這將很繁瑣。 今天,我將討論一些公式來快速,省時地完成這項工作。

每5行或每列平均計算公式

用Kutools for Excel平均每5行或每列


每5行或每列平均計算公式

以下公式將幫助您計算工作表中每5行的平均值,請執行以下操作:

1。 在空白單元格中輸入以下公式: =平均(OFFSET($ A $ 2,(ROW()-ROW($ C $ 2))* 5,,5,)) (A2 是您要平均的起始值,並且 C2 是您輸入此公式的單元格,即數字 5 表示您要平均的每5行),然後按 Enter 獲得結果的關鍵,請參見屏幕截圖:

文檔平均每 5 行 1

2. 然後選擇此單元格並將填充手柄向下拖動到這些單元格,直到顯示錯誤值。 看截圖:

文檔平均每 5 行 2

備註:如果要對連續的每5列求平均值,則可以應用以下公式: =AVERAGE(OFFSET($A$1,,(COLUMNS($A$3:A3)-1)*5,,5)) (A1 是您要平均的起始值,並且 A3 是您放置此公式的單元格,即數字 5 表示要平均的每5列),然後將填充手柄拖到右側,直到出現錯誤值,請參見屏幕截圖:

文檔平均每 5 行 3


用Kutools for Excel平均每5行或每列

Excel的Kutools's 每行插入分頁符 可以幫助您為每n行插入一些分頁符,然後通過應用 分頁小計 功能。

Excel的Kutools : 帶有300多個便捷的Excel加載項,可以在30天內免費試用. 

安裝後 Excel的Kutools,請這樣做:

1。 點擊 Kutools 加 > 打印 > 每行插入分頁符,請參見屏幕截圖:

2。 在插入 分頁符每一行 在對話框中,指定要在其間插入分頁符的行號,並且每5行插入一次分頁符,如以下屏幕截圖所示:

文檔平均每 5 行 5

3。 然後點擊 Kutools 加 > 打印分頁小計,請參見屏幕截圖:

4。 在 分頁小計 對話框中,選中要進行某些計算的列標題,然後選擇函數 中等 根據需要,請參見屏幕截圖:

文檔平均每 5 行 7

5。 然後,每5行計算一次平均值,請參見屏幕截圖:

文檔平均每 5 行 8

立即下載和免費試用Excel的Kutools!


演示:使用Kutools for Excel對每5行或每列平均/求和

Excel的Kutools:具有300多個方便的Excel加載項,可以在30天內免費試用,沒有任何限制。 立即下載並免費試用!

相關文章:

在輸入新數字時,如何平均一列的最後5個值?

如何在Excel中平均前3個值?

最佳辦公生產力工具

🤖 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 (8)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
not working at all
This comment was minimized by the moderator on the site
Muito obrigado! Salvou!
This comment was minimized by the moderator on the site
Thank you so much!
This comment was minimized by the moderator on the site
The goal is to capture 5 rows of adjacent data items, in the same column, in groups of 5. The REFERENCE cell is A2. When the FORMULA is typed in, for example, cell C2, meaning Column C Row 2, the numeric result of ROW() = 2. Therefore, in order to begin the counter AT the starting point REFERENCE cell selected, in this site's example A2, the operator for OFFSET of rows needs to 0. 0 means Start Here at the REFERENCE cell. ROW() returns the row number as an integer. ROW () in the cell in which the FORMULA is typed, C2, returns the value 2: ROW()-2 = (2)-2 = 0. In order to count ahead 5 rows each time, *5 is added. Add parenthesis around the subtraction because of mathematical order of operations: (ROW()-2). When the FORUMULA is typed in row C2, (ROW()-2)*5 = ((2)-2)*5 = (0)*5 =0. Copy this formula down into cell C3 and the result is (ROW()-2*5=((3)-2)*5 = (1)*5 = 5 which initiates the OFFSET function of the FORMULA to begin at 5 rows below cell A2 : A(2+5) = A7. Copy this formula down into cell C4, the result is (ROW()-2*5=((4)-2)*5 = (2)*5 = 10 which causes OFFSET of the FORMULA to begin at 10 rows below cell A2 : A(2+10) = A12. In order to capture 5 items of data, the number in [height] = 5. The complete FORMULA typed in cell C2 is =AVERAGE(OFFSET($A$2,(ROW()-2)*5,0,5,1)). The function AVERAGE can be replaced with SUM, STDEV, etc.
This comment was minimized by the moderator on the site
how to find average between two consecutive zero value in coloumn .
This comment was minimized by the moderator on the site
Thanks heaps for this information. Very helpful for working with my data set.
This comment was minimized by the moderator on the site
This worked so well, i'm a little skeptical because I am dealing with huge chunks of data and its difficult to verify if i'm getting correct values
This comment was minimized by the moderator on the site
Thanks a lot extend office you saved my lot of time...Will definitely love to contribute one day when i become rich.
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations