SUMROWS

=SUMROWS(x)

x
the 2D array to be summed

SUMROWS returns the sum of each row in a 2D array.

RicoS

Board Regular
Joined
May 1, 2019
Messages
62
SUMROWS returns the sum of each row in a 2D array (this is not my creation, I first saw this on youtube comment user: cr gr 0912, and also on User Voice, but it is referenced in some of my other functions, so it's here!)

Excel Formula:
=LAMBDA(x,MMULT(x,SEQUENCE(COLUMNS(x),1,1,0)))

Lambda - Last Cell and Split.xlsx
BCDEFGHIJKL
1Original Array
210345608010
312305070010
41204567800
5
6Sum rows
737
828
933
Sheet1
Cell Formulas
RangeFormula
B2:K4B2={1,0,3,4,5,6,0,8,0,10;1,2,3,0,5,0,7,0,0,10;1,2,0,4,5,6,7,8,0,0}
B7:B9B7=SUMROWS(B2#)
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,212
Members
453,023
Latest member
alabaz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top