We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Clueless about simple spreadsheet formula in Open Office

Options
Kernel_Sanders
Kernel_Sanders Posts: 3,617 Forumite
Part of the Furniture 1,000 Posts Combo Breaker
edited 4 September 2015 at 10:36PM in Techie Stuff
I just want to keep a record of deposits, withdrawals and a running balance of a bank account. I've now spent over an hour trying to find out how to devise a formula along the lines of D = (previous D) + B - C. If I try to insert such a formula in the toolbar shown, the = sign changes to the green tick! How do I tell it to only calculate from line 5?
8OocfOz.png
«13

Comments

  • lindabea
    lindabea Posts: 1,530 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    I would not have laid the spreadsheet the way you did it, as it's not well structured. However, you could make it work with the following formula
    D6 = D5 + B6 - C6

    Then repeat for the next line so that you will be bringing forward the previous D line.
    Before doing something... do nothing
  • How should it be structured?
    Surely I don't have to monotonously go through dozens of lines advancing the figures one at a time?
  • lindabea
    lindabea Posts: 1,530 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    In openoffice, when you keyed in the formula in a cell, you can then scroll down and automatically copy that formula in all the cells in that column.

    So in your case, put your opening balance in D5 place your cursor in D6 and key the formula =D5+B6-C6. Then copy the formula down column D.
    Before doing something... do nothing
  • Put your opening balance in D5
    Then in D6 do this =(click on D5) press +(click on C3) press -(click on C4) press enter
    then click on D6 press Ctrl+C
    then click on D7 press shift and down arrow to gighlight the 10 rows(say) then press Ctrl+v

    Then you just repeat from Dx copy again CTRL+c) highlight mode in column D and paste again (ctrl+v)
    4.8kWp 12x400W Longhi 9.6 kWh battery Giv-hy 5.0 Inverter, WSW facing Essex . Aint no sunshine ☀️ Octopus gas fixed dec 24 @ 5.74 tracker again+ Octopus Intelligent Flux leccy
  • lindabea
    lindabea Posts: 1,530 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    This is the way I would have laid the spreadsheet
    A B C D E F
    Date Payment Type Bal B/F Deposits Withdrawals Bal C/F

    Then I would have copied cell F to cell C on the next line

    Hope this makes sense
    Before doing something... do nothing
  • Kernel_Sanders
    Kernel_Sanders Posts: 3,617 Forumite
    Part of the Furniture 1,000 Posts Combo Breaker
    edited 5 September 2015 at 12:07AM
    +(click on C3)
    C3 doesn't appear to be interactive. Why would you add any amount from the withdrawals column?
    This is just all too difficult, I think it'll be simpler for me to just write it out and and do the arithmetic by calculator..
  • GunJack
    GunJack Posts: 11,829 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Photogenic
    C3 doesn't appear to be interactive. Why would you add any amount from the withdrawals column?
    This is just all too difficult, I think it'll be simpler for me to just write it out and and do the arithmetic by calculator..

    No, it's not, it's very simple and exactly the type of thing that spreadsheets were made for.... lindabea gave you the way to do this, once the formula is in cell D6, as has been said already, just then copy it down column D. All you need to do then is insert your date, deposit and withdrawal figures line by line and the spreadsheet will do the maths for you ;)
    ......Gettin' There, Wherever There is......

    I have a dodgy "i" key, so ignore spelling errors due to "i" issues, ...I blame Apple :D
  • C3 doesn't appear to be interactive. Why would you add any amount from the withdrawals column?
    This is just all too difficult, I think it'll be simpler for me to just write it out and and do the arithmetic by calculator..
    OK let me try again
    Put opending balance in D5
    In D6 type (ignore using click as I suggested I didn't say double click)
    =D5+B6-C6

    I was typing on a small screen with onscreen kb and got the columns mixed up:o

    Then copy D6 to D7.........Dx using CTRL+C on D6 and CTRL+V on D7........Dx.
    4.8kWp 12x400W Longhi 9.6 kWh battery Giv-hy 5.0 Inverter, WSW facing Essex . Aint no sunshine ☀️ Octopus gas fixed dec 24 @ 5.74 tracker again+ Octopus Intelligent Flux leccy
  • Does that mean I don't 'press shift and down arrow to highlight'? I didn't, but 3 problems became apparent when I put some figures in as a trial:
    1. When I typed in 3300.00, it converted it to 3300 on calculation despite me setting the currency to show pence before I even started it.
    2. It's bleaching the balance column.
    3. It's calculating in advance all the cells to which I have copied the formula.
    OUwKbi6.png
  • wealdroam
    wealdroam Posts: 19,180 Forumite
    Part of the Furniture 10,000 Posts Name Dropper Combo Breaker
    I would suggest you need something slightly more complicated in column D.

    I'll borrow a line from debitcardmayhem's post and adjust it:
    In D6 type
    =IF(SUM(B6,C6)=0," ",SUM(D5,B6,-C6))

    This is saying that if there are no credits or debits on this line then put a blank in D6, otherwise add together the credit and debit (usually only one or the other) to the previous balance and write that in D6.

    Then to avoid having to copy and paste that all the way down the column, just click on the tiny little box at the bottom right of the D6 cell (can be seen on cell B11 on your screen print), and drag the formula down through all cells in that column.
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 350.9K Banking & Borrowing
  • 253.1K Reduce Debt & Boost Income
  • 453.5K Spending & Discounts
  • 243.9K Work, Benefits & Business
  • 598.7K Mortgages, Homes & Bills
  • 176.9K Life & Family
  • 257.1K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.