Closed Thread
Results 1 to 14 of 14

Off Balance...

Hybrid View

artboyblue Off Balance... 09-07-2009, 02:06 AM
DonkeyOte Re: Off Balance... 09-07-2009, 02:14 AM
artboyblue Re: Off Balance... 09-07-2009, 02:18 AM
DonkeyOte Re: Off Balance... 09-07-2009, 02:28 AM
artboyblue Re: Off Balance... 09-07-2009, 02:38 AM
DonkeyOte Re: Off Balance... 09-07-2009, 02:43 AM
artboyblue SOLVED... Off Balance... 09-07-2009, 03:01 AM
zbor Re: SOLVED... Off Balance... 09-07-2009, 03:49 AM
artboyblue Re: Off Balance... 09-07-2009, 09:49 AM
artboyblue Re: Off Balance... QUICK... 09-07-2009, 12:27 PM
DonkeyOte Re: Off Balance... 09-07-2009, 12:29 PM
artboyblue Re: Off Balance... 09-07-2009, 01:54 PM
Vegita Re: Off Balance... 02-03-2010, 03:48 PM
DonkeyOte Re: Off Balance... 02-03-2010, 04:42 PM
  1. #1
    Registered User
    Join Date
    09-07-2009
    Location
    Earth
    MS-Off Ver
    Excel 2007
    Posts
    12

    Smile Off Balance...

    I am completely new to Excel, and need to do a ledger for work. I have been able to figure out nearly everything so far, but am having a problem with the "Balance" Column. Each cell in this column gets the running total from the cell directly above it, and then examines the data in its own row to the left, which it then adds or subtracts to create a new total, which it finally places in its own cell in the Balance column. The problem I have is two fold:

    1. I need to have some empty rows available, as we have lots of transactions to add on a regular basis. These empty rows (and more specifically, all of the empty cells in the Balance column currently report the last calculated running balance... which is technically correct and is what the formula is asking. But, it would be much better if the formula for these cells could determine when the entire row to the left is empty, and then leave the running total column blank until the row is populated.

    Here is the formula I have come up with... please don't laugh, I am a complete newbie. ;-)

    =SUM(INDIRECT(ADDRESS(ROW()-1,COLUMN()))+(INDIRECT("E"&ROW()))-(INDIRECT("J"&ROW())),-(INDIRECT("K"&ROW())),-(INDIRECT("L"&ROW())),-(INDIRECT("M"&ROW())),-(INDIRECT("N"&ROW())),-(INDIRECT("O"&ROW())),-(INDIRECT("P"&ROW())),-(INDIRECT("Q"&ROW())),-(INDIRECT("R"&ROW())),-(INDIRECT("S"&ROW())),-(INDIRECT("T"&ROW())),-(INDIRECT("U"&ROW())),-(INDIRECT("V"&ROW())),-(INDIRECT("W"&ROW())),-(INDIRECT("X"&ROW())),-(INDIRECT("Y"&ROW())),-(INDIRECT("Z"&ROW())),-(INDIRECT("AA"&ROW())),-(INDIRECT("AB"&ROW())),-(INDIRECT("AC"&ROW())),-(INDIRECT("AD"&ROW())),-(INDIRECT("AE"&ROW())))
    2. At the very end of the Balance column I need to display... well, the balance, regardless of how many rows have been completed. Right now, I think because of the first issue, I am getting a HUGE number that is WAY off. Here's the formula I am using:

    =SUM(AF10:OFFSET(AF120,-1,0))
    Thanks for any help you can offer.[/FONT][/SIZE]
    Last edited by artboyblue; 09-07-2009 at 01:55 PM. Reason: Solved

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Off Balance...

    It's not clear which row is the first containing the formula... if we assume it is in AF2 then perhaps you can revise your first formula to something along the lines of:

    AF2:
    =IF(COUNT($E2,$J2:$AE2),$AF1+$E2-SUM($J2:$AE2),"")
    copied down to AF119
    For your final row which is to show Total, assuming it is AF120

    AF120:
    =LOOKUP(9.99999999999999E+307,$AF$2:$AF$119)

  3. #3
    Registered User
    Join Date
    09-07-2009
    Location
    Earth
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Off Balance...

    Sorry for not being clearer... the first cell that shows the opening balance is AF10, then AF11 is the first full row for the ledger with the cell for the running total. Your formula for the final total at the bottom plugged in and worked perfectly... thanks much. Not sure I understand the solution you offered for the first part of he problem though.
    Last edited by artboyblue; 09-07-2009 at 02:30 AM. Reason: expanded reply

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Off Balance...

    OK so if we assume first formula in terms of running balance is to go into AF10 then:

    AF10
    =IF(COUNT($E10,$J10:$AE10),SUM($AF9,$E10)-SUM($J10:$AE10),"")
    copied down to AF119

  5. #5
    Registered User
    Join Date
    09-07-2009
    Location
    Earth
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Off Balance...

    Thanks for your help. That worked. I revised the formula for next cell below like this:

    =IF(COUNT($E11,$J11:$AE11),SUM($AF10,$E11)-SUM($J11:$AE11),"")

    and it worked too. However, this is a huge table... please tell me there is an easier way than manually editing every cell in the balance column. This would be especially painful when adding new rows.

    Thanks again for your assistance.

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Off Balance...

    You can copy and paste AF10 into AF11:AF119 simultaneously - you need not apply each formula individually... (or if you hover on bottom right corner of AF10 you will see a black cross - click that and drag down to AF119).

    You might want to google on "Fill Handle" as this is a very handy tool when you're getting to grips with XL.

  7. #7
    Registered User
    Join Date
    09-07-2009
    Location
    Earth
    MS-Off Ver
    Excel 2007
    Posts
    12

    Smile SOLVED... Off Balance...

    Absolutely Astounding... I can't thank you enough. Worked like a charm. Thanks for being so patient, thorough, and quick to offer assistance... truly appreciated.

  8. #8
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,042

    Re: SOLVED... Off Balance...

    Please, make solved from drop down menu next to title you've changed
    Never use Merged Cells in Excel

  9. #9
    Registered User
    Join Date
    09-07-2009
    Location
    Earth
    MS-Off Ver
    Excel 2007
    Posts
    12

    Smile Re: Off Balance...

    Gotcha... Done... Thanks Again.

  10. #10
    Registered User
    Join Date
    09-07-2009
    Location
    Earth
    MS-Off Ver
    Excel 2007
    Posts
    12

    Smile Re: Off Balance... QUICK FOLLOW-UP

    I have a quick follow-up question, if I may. How can I modify the function you offered above =LOOKUP(9.99999999999999E+307,$AF$10:$AF$119) to self-adjust as we add new rows to the table?

    Thanks again for helping this Excel Newbie in a real pinch... Sincerely.

  11. #11
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Off Balance...

    Per the other question it's probably best to utilise INDEX (in preference to OFFSET given Volatility) so perhaps:

    =LOOKUP(9.99999999999999E+307,INDEX($AF:$AF,10):INDEX($AF:$AF,ROWS($AF$1:$AF120)-1))

  12. #12
    Registered User
    Join Date
    09-07-2009
    Location
    Earth
    MS-Off Ver
    Excel 2007
    Posts
    12

    Smile Re: Off Balance...

    Yep, got it... works great. Now all of the formulas adjust themselves as we add new rows: columns, of course, would be another matter entirely, but we have been careful to at least try to be all-inclusive in the layout. So hopefully we will not need to add columns often.

    Once again, thank you so kindly for your help. [/SIZE][/FONT]
    Last edited by shg; 09-07-2009 at 02:41 PM.

  13. #13
    Registered User
    Join Date
    02-03-2010
    Location
    Montreal, Canada
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Off Balance...

    hi folks
    i thought of opening a new thread, but since its same issue, i'll shoot right here, sorry if its not done properly.
    I have same issue but more simple actually than the above.
    column A is deposits
    column B is withdrawal
    Column C is balance

    i used formula =SUM(A2,-B2) on column C1, then =SUM(C2,A3,-B3) on C2 and so on for C3, 4, 5....
    Like above mentioned, Coumn C keep showing data even if A2, B2 are empty.
    How could i i make so C2, 3, 4 etc show balance only if there is value entered in (A2 or B2) (A3 or B3) etc.

    thanks again as this is great help, and did i mention i'm a newbie too...

  14. #14
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Off Balance...

    Vegita,

    Your post does not comply with Rule 2 of our Forum RULES.

    Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1