Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
TL TL is offline
external usenet poster
 
Posts: 10
Default Running Balance in the same cell...

Ok, I have a spreadsheet that I"m creating to keep track of spending that is
coming out of two different accounts. I want to be able to keep a running
balance but in the same cell based on a condition. Is this possible. My
spreadsheet looks like this.

Cell A Cell B Cell C Cell D
1 9000 3000
2 R 100
3 P 50
4 R 400
5 P 100

What I'm trying to do is that based on if "Cell A" = "R", I want to subtract
"Cell C" by 100 and then "Cell C" becomes "8900". Then If "Cell A" = "P", I
want to subtract "Cell D" by "50" and then "Cell D" becomes "2950". So, then
when the next "R" comes up, I want to take the new total of "8900" and
subtract "400" from it leaving me with "8500" and continue down the line. Is
this possible? What's the best way to go at this?

The formula I have only works with multiple cells doing running balances and
I don't want that.

TL
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 506
Default Running Balance in the same cell...

If you just want to apply the formula for arriving the result in one cell
then follow the below steps:-

In C1 Cell paste the below formula
=9000-SUMIF(A:A,"R",B:B)

In D1 cell paste the below formula
=3000-SUMIF(A:A,"P",B:B)
Here the amounts are mentioned in the formula itself.


In another method if you want to see the results near by the B column Values
like if the B2 cell is R then it will deduct the B2 cell value from C1 cell
value and show you the remaining balance of C1 cell value nearby the cells
like Balance amount. For doing this follow the below steps:-

In C1 cell
9000

In D1 cell
3000

In C2 cell
=$C$1-SUMIF($A$2:$A2,"R",$B$2:$B2)
Copy the C2 and paste it for the remaining cells of C Column based on the
A&B Column Data.

In D2 Cell
=$D$1-SUMIF($A$2:$A2,"P",$B$2:$B2)

Copy the D2 and paste it for the remaining cells of D Column based on the
A&B Column Data.

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"tl" wrote:

Ok, I have a spreadsheet that I"m creating to keep track of spending that is
coming out of two different accounts. I want to be able to keep a running
balance but in the same cell based on a condition. Is this possible. My
spreadsheet looks like this.

Cell A Cell B Cell C Cell D
1 9000 3000
2 R 100
3 P 50
4 R 400
5 P 100

What I'm trying to do is that based on if "Cell A" = "R", I want to subtract
"Cell C" by 100 and then "Cell C" becomes "8900". Then If "Cell A" = "P", I
want to subtract "Cell D" by "50" and then "Cell D" becomes "2950". So, then
when the next "R" comes up, I want to take the new total of "8900" and
subtract "400" from it leaving me with "8500" and continue down the line. Is
this possible? What's the best way to go at this?

The formula I have only works with multiple cells doing running balances and
I don't want that.

TL

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Balance Jayne Excel Worksheet Functions 2 November 18th 08 04:08 PM
Running Balance in One Cell MartyM Excel Discussion (Misc queries) 3 December 27th 07 09:02 PM
rent received/balance owed/running balance spreadsheet Quickbooks dummy Excel Discussion (Misc queries) 1 January 2nd 06 07:34 PM
How do i set up a running balance on one row? Jimmy James Excel Worksheet Functions 1 November 15th 05 07:08 PM
how : check register running balance is a stationary cell Michele Excel Discussion (Misc queries) 9 January 19th 05 05:25 PM


All times are GMT +1. The time now is 10:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"