How To Sum Conditionally?

xlmaniac

Well-known Member
Joined
Jul 2, 2009
Messages
527
Office Version
  1. 2010
Platform
  1. Windows
Dear ALl,
I do have a small sample data set across A1:B10 as follows.
I would like to conditionally sum as per the desired result across C2:C10.
Could somebody help me out with the formula which can yield the same?

RegionIdentifierDesired Result
A11
A12
A13
A14
B11
B12
B13
C11
C12

<colgroup><col span="2"><col></colgroup><tbody>
</tbody>
Thanks
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Just use SUMIF, and only have it go down as far as your current row.
So, if the first desired result is in cell C2, enter this formula in it and copy down for all rows:
Code:
=SUMIF(A$2:A2,A2,B$2:B2)
 
Upvote 0
Thank you so much for your support.
Really appreciate the same.
 
Upvote 0

Forum statistics

Threads
1,215,026
Messages
6,122,738
Members
449,094
Latest member
dsharae57

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