arrayformula sum in Google spreadsheet

前端 未结 10 2353
野性不改
野性不改 2020-12-14 17:02

How do you arrayformula() a sum() such as:

=sum(A1:H1)

I need to go down 1000 rows.

10条回答
  •  渐次进展
    2020-12-14 17:27

    Using DSUM:

    =ARRAYFORMULA(DSUM(
      TRANSPOSE(FILTER({A2:A,A2:H},A2:A<>"")),
      SEQUENCE(COUNTA(A2:A)),{IFERROR(1/0);IFERROR(1/0)}))
    

    notes:

    • {IFERROR(1/0);IFERROR(1/0)} is to make zero creteria for DSUM.

    • {A2:A,A2:H} -- added fake column for DSUM to mimic header column.

    • may be able to cahnge the formula into DMAX or DAVERAGE

提交回复
热议问题