Incremental Sum but with a twist

Bill_k

New Member
Joined
Apr 22, 2015
Messages
10
Hello guys... need some urgent help here:

I have a number "456587"

8545879423990239585729284151612

<tbody>
</tbody>


I need to write a formula in a single cell that sums 456587 with the first number, and then their resultant with the second, and then the resultant with the third so on and so forth.

some thing like =+A3+A1+A3+A1+B1+A3+A1+B1+C1... if you get what i mean.


Please help.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Try...

=SUMPRODUCT(A3+SUBTOTAL(9,OFFSET(A1:K1,,,,COLUMN(A1:K1)-COLUMN(A1)+1)))

Hope this helps!
 
Upvote 0
Domenic, I for one would be really grateful if you explained how that works, thanks.

COLUMN(A1:K1)-COLUMN(A1)+1) returns the following array of values...

{1,2,3,4 ... 11}

This array of values is used as the Width argument for OFFSET and returns following array of sub-ranges...

A1
A1:B1
A1:C1
'etc
'
'
A1:K1

This array of sub-ranges is passed to the SUBTOTAL function, which sums each one and returns the array of values.

Then, each value within this array of values (the sum of each sub-range) is added to the value in A1, and an array of values is returned, which is passed to SUMPRODUCT and summed.

Hope this helps!
 
Last edited:
Upvote 0
Another option if you wanted to avoid the volatile function OFFSET, I think would be

=SUMPRODUCT(A1:K1,COLUMNS(A1:K1)-(COLUMN(A1:K1)-COLUMN(A1)))+COLUMNS(A1:K1)*A3
 
Upvote 0

Forum statistics

Threads
1,215,022
Messages
6,122,721
Members
449,093
Latest member
Mnur

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