I'm sure there is a really simple answer to this and I'm just missing it.
I need this formula to sum the contents of each row in D:F just for that row not sum the contents of columns D:F
=ARRAYFORMULA(
if(
row(A1:A)=1,
"TOTAL HOUSING",
sum(D:F)
)
)
One way would be to use MMULT
=ARRAYFORMULA(
if(
row(A1:A)=1;
"TOTAL HOUSING";
MMULT(N(D:F); TRANSPOSE(COLUMN(D1:F1)^0))
)
)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.