Return values from the row above to the current row

后端 未结 5 1772
栀梦
栀梦 2021-02-01 02:34

I am trying to do simple thing: I just need to set some cells to values that are on the previous rows. I have tried =A(Row()-1) but it does not work.

5条回答
  •  伪装坚强ぢ
    2021-02-01 02:53

    I followed BEN and Thanks and Lot for the Answer,So I used his idea to get my solution, I am posting the same hence if some one else has similar requirement, then you also can use my solution as well, My requirement was something like I want to get the sum of entire data from the first row to the last row, and I was generating the spreadsheet programmatically so don't and can't hard code the row names in sum as the data is always dynamic and number of rows are never constant. My formula was something like as follows.

    =SUM(B1:INDIRECT("B"&ROW()-4))
    

提交回复
热议问题