We'd like to remind Forumites to please avoid political debate on the Forum. This is to keep it a safe and useful space for MoneySaving discussions. Threads that are - or become - political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

Excel help - again

Gers
Gers Posts: 12,747 Forumite
Part of the Furniture 10,000 Posts Photogenic Name Dropper
I'd be grateful for some advice about an Excel worksheet please.

I've created a very basic worksheet to record simple money transactions:

Spending.jpg

Purely for 'looks' I'd prefer that the running totals in columns C and D don't show all the way down on the empty rows - is that possible without removing the copied formulas?

thanks

Comments

  • JGB1955
    JGB1955 Posts: 3,713 Forumite
    Fifth Anniversary 1,000 Posts Name Dropper
    What formula have you put in C3 and D3. And how are you going to show cash in?
    #2 Saving for Christmas 2024 - £1 a day challenge. £325 of £366
  • Neil_Jones
    Neil_Jones Posts: 9,379 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    You can wrap it in an IF statement, something like this:
    =IF(J10<0.9,SUM(I10*J10*$A$1),)
    

    This particular example I've copied from a spreadsheet of my own but the basic principle here is check the value of a cell, if its below a certain value then do a sum, otherwise return a blank cell. You should be able to change this using the ISBLANK function again in an IF statement.
  • WaywardDriver
    WaywardDriver Posts: 546 Forumite
    Seventh Anniversary 500 Posts
    Formula in C2 =IF(ISBLANK(B2),"",C1+B2).
  • Heedtheadvice
    Heedtheadvice Posts: 2,667 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    Plus if if you want to show the summation based on the contents of more than one cell then combine the formula with logical operators such as

    C2 =IF( or( not(ISBLANK(A2) ), NOT( ISBLANK(B2)) ) ,C1+B2, "")


    i.e. if cell A2 or cell B2 have an entry (not blank) then sum otherwise make cell empty.


    Note a possilble downfall is if the cells to be tested are not empty but have text in them then they are not blank, a summation will be attempted and return an error! That error can be trapped by including ISNUMBER() function in the cell code or probably better still using that instead of isblank !
  • WaywardDriver
    WaywardDriver Posts: 546 Forumite
    Seventh Anniversary 500 Posts
    Note a possilble downfall is if the cells to be tested are not empty but have text in them then they are not blank, a summation will be attempted and return an error! That error can be trapped by including ISNUMBER() function in the cell code or probably better still using that instead of isblank !
    Good thinking, formula =IF(ISNUMBER(B2),C1+B2,"")
This discussion has been closed.
Meet your Ambassadors

Categories

  • All Categories
  • 347.8K Banking & Borrowing
  • 251.9K Reduce Debt & Boost Income
  • 452.2K Spending & Discounts
  • 240.2K Work, Benefits & Business
  • 616.4K Mortgages, Homes & Bills
  • 175.4K Life & Family
  • 253.5K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16K Discuss & Feedback
  • 15.1K Coronavirus Support 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.