Link to home
Start Free TrialLog in
Avatar of finnstone
finnstone

asked on

SUM FIRST 12 COLUMNS OF DATA FOR EACH ROW

i have 300 rows

each row has 12-60 columns of data in it, but each row has a different starting column . i need to create a new column, B, and put the sum of the first 12 columns with data into it.

must ignore cells that have just a "0" in it.

for example, row 25, has 0 in columns 12-34. So I need column B to equal the SUM of B35-46

THANKS!
ASKER CERTIFIED SOLUTION
Avatar of Koen
Koen
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thank you for the points... Come to think of it, my formula may not be exactly what you want/ need:

if you want to sum the first 12 non zero columns, than formula above is the way to go.

if you want to sum 12 columns, starting from the first non zero value (and regardless of the value of those 12 columns, i.e. could be zero), than the formula is a lot simpler; type in B2:
=SUM(OFFSET(B2,0,INDEX(MATCH(TRUE,C2:xx2<>0,0),1),1,12))
(no array formula, replace xx with your last column)