99re热视频这里只精品,久久久天堂国产精品女人,国产av一区二区三区,久久久精品成人免费看片,99久久精品免费看国产一区二区三区

EXCEL offset配合sum求和

2018-09-23 12:14 更新
.中國教程網zhangditony翻譯,轉載請保留此信息 .
 

To sum cells a2:a5 using sum function. If you insert a row directly above the SUM formula, the new row may not be included in the SUM. It may continue to sum cells A2:A5, and ignore A6. To ensure that new rows are included in the total, you can use  the  OFFSET function.
Select cell A6.
Enter the following formula:
   =SUM(A2:OFFSET(A6,-1,0))
Press the Enter key to complete the entry.
Insert a row above row 6
Type a number in cell A6, and it will be included in the total in cell A7

      實際工作中,經常需要在原有求和公式前再增加新行,如果增加一行或增加多行后,每行都輸入數據,excel會智能的更改SUM公式的求和范圍,如果增加多行后,未按序輸入,SUM公式就會保持原來的求和范圍以至得出錯誤的結果,為避免這種現象,我們可以試用offset函數配合sum函數求解,做到以不變應萬變。[A6=SUM(A2:OFFSET(A6,-1,0)) ]

20070715_e4877cfcc524beb0845bnfad5a1cfxw8[1].gif

以上內容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號