Sum visible cell above + formula in selected row

data08

New Member
Joined
Aug 23, 2016
Messages
2
Hi

I have a data set which is filtered. I have supplied the original data set, the cells in formula format, and the subsequent filtered data.

I calculate a formula in column F from data in each row. I then calculate a running balance in column G, which simply adds the formula in column F to the prior balance in the cell above.
E.g. Balance in G3 = G2 + F3

The problem is when I filter the data so that I need the running balance of the cell directly above.
e.g. G4 = G2 + F4

I have tried using subtotal but it does not seem to like this variation. My dataset is thousand of lines long so it is causing me a problem as it's too time consuming to go through each row in the filtered set.

Does anyone have any ideas?

ABCDEFG
1 DateProbabilityReturnEquityProfitBalance
201-Jan-4.28-4.905.00-24.50-24.50
302-Jan1.52-6.60-33.00-57.50
403-Jan-7.02-0.05-0.25-57.75
504-Jan-0.48-0.05-0.25-58.00
605-Jan-1.19-0.05-0.25-58.25
706-Jan-1.39-0.05-0.25-58.50
807-Jan-2.96-0.0510.00-0.25-58.75
908-Jan-0.42-0.05-0.25-59.00
1009-Jan-1.098.5542.75-16.25
1110-Jan-1.747.6038.0021.75
1211-Jan-3.50-4.40-22.00-0.25
1312-Jan-1.98-0.05-0.25-0.50
1413-Jan-1.99-0.05-0.25-0.75
1514-Jan-1.32-0.05-0.25-1.00
1615-Jan0.30-0.05-0.25-1.25
1716-Jan-1.67-0.05-0.25-1.50
1817-Jan-1.39-0.05-0.25-1.75
1918-Jan-5.26-0.05-0.25-2.00
2019-Jan-0.51-0.05-0.25-2.25

<!--StartFragment--> <colgroup><col width="65" span="7" style="width:65pt"> </colgroup><tbody>
<!--EndFragment--></tbody>

FORMULAS:

ABCDEFG
1DateProbabilityReturnEquityProfitBalance
242370-4.27-4.95=D3*E3=F3
3423711.51-6.6=D4*$E$3=G3+F4
442372-7.01-0.05=D5*$E$3=G4+F5
542373-0.48-0.05=D6*$E$3=G5+F6
642374-1.19-0.05=D7*$E$3=G6+F7
742375-1.38-0.05=D8*$E$3=G7+F8
842376-2.95-0.0510=D9*$E$3=G8+F9
942377-0.42-0.05=D10*$E$3=G9+F10
1042378-1.088.55=D11*$E$3=G10+F11

<!--StartFragment--> <colgroup><col width="130" span="7" style="width:130pt"> </colgroup><tbody>
<!--EndFragment--></tbody>

<!--StartFragment--> <colgroup><col width="65" span="7" style="width:65pt"> </colgroup><tbody>
</tbody>
FILTERED:

ABCDEFG
1DateProbabilityReturnEquityProfitBalance
201-Jan-4.28-4.905.00-24.50-24.50
403-Jan-7.02-0.05-0.25-25.00
807-Jan-2.96-0.0510.00-0.25-25.25
1211-Jan-3.50-4.40-22.00-27.25
1918-Jan-5.26-0.05-0.25-27.50

<!--StartFragment--> <colgroup><col width="65" span="7" style="width:65pt"> </colgroup><tbody>
<!--EndFragment--></tbody>
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,215,497
Messages
6,125,158
Members
449,208
Latest member
emmac

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