+ Reply to Thread
Results 1 to 4 of 4

How to calculate the contents of a coloumn, where there are empty cells

  1. #1
    Valued Forum Contributor
    Join Date
    06-23-2010
    Location
    North West
    MS-Off Ver
    office 2010
    Posts
    355

    How to calculate the contents of a coloumn, where there are empty cells

    Good Evening
    In the Wheelchair 1, 2, 3 & 4 sheets in the attached workbook, I would like to do a simple calculation of the contents of column 'H'.
    Instead of it adding up to just a few £'s I'm getting the result of something like -£5880.00.
    I think I know whay is wrong, but I don't know the solution to it.
    Column 'H' populates when a date is put into Column 'E'
    So if cells if cells in Column 'E' are empty then column 'H' doesn't do the sum.

    What I think I need is a bit of formula to put into column 'H' to tell it to ignore blank spaces and count what is there.
    Can someone advise please?
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: How to calculate the contents of a coloumn, where there are empty cells

    instead of using this custom format "£"# ##0.00;; in columns H and O,
    use the following fomrat "£"# ##0.00
    It will show you have some errors in your formula. Correct your formula and it should be OK.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

  3. #3
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: How to calculate the contents of a coloumn, where there are empty cells

    your problem is in F7. You don't have an ending date:
    Change from:
    =INT((E7+1-D7)/7)
    to
    =IF(E7="",0,INT((E7+1-D7)/7))
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

  4. #4
    Valued Forum Contributor
    Join Date
    06-23-2010
    Location
    North West
    MS-Off Ver
    office 2010
    Posts
    355

    Re: How to calculate the contents of a coloumn, where there are empty cells

    Thank you both for your contribution.
    Ron2k_1 I'm very pleased that you could identify the problem with the formula and that you could give me a solution which I have used and it solved the issue.
    Thanks

    p24leclerc, thank you also, I wasn't sure what was wrong with the formulas, but with hindsight it was the one Ron2k_1 has pointed out to me.
    I did however change the formatting of the cells to your suggested format and although I don't know what the difference in the format means, everything seems to work ok.

+ Reply to 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