+ Reply to Thread
Results 1 to 5 of 5

Formula to show empty cell if there is no number in the cells to be summed.

  1. #1
    Registered User
    Join Date
    12-04-2010
    Location
    Jamaica
    MS-Off Ver
    Excel 2003
    Posts
    92

    Formula to show empty cell if there is no number in the cells to be summed.

    Hello Experts,
    I want to write a formula in cell H5 that will look into cells A5, C5, E5 & G5 and return the sum of any number that is in these cells.
    If however there are no numbers in these cells i want the formula to leave cell H5 empty. I do not want it to show Zero in cell H5 if there are no numbers in the cells to be summed.


    Thanks,

  2. #2
    Registered User
    Join Date
    12-22-2015
    Location
    Huntsville, AL
    MS-Off Ver
    2007
    Posts
    92

    Re: Formula to show empy celll if there is no number in the cells to be summed.

    Do you want H5 to be show as empty if there are no numbers in all of those cells or if any of them have no number?

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula to show empty cell if there is no number in the cells to be summed.

    Maybe this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,696

    Re: Formula to show empty cell if there is no number in the cells to be summed.

    Blank if all four cells are blank, otherwise show sum.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Formula to show empty cell if there is no number in the cells to be summed.

    Here is another way. I don't know what is between those cells so have listed them instead of using ranges.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    COUNT counts numbers. If alpha characters are entered in those cells, they are not counted...only numbers are counted. If there are no numbers in A5, C5, E5, G5 then the count is 0 and will return a blank cell. If any one of those cells contains a number then the SUM takes over and returns a total.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Show empty cell instead of zero in indx formula
    By purlo in forum Excel General
    Replies: 2
    Last Post: 01-21-2016, 06:50 AM
  2. Replies: 10
    Last Post: 09-26-2015, 08:26 PM
  3. [SOLVED] excel 2010 empty a cell according to other cells (without Deleting them just show empty)
    By pavlos_x in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2015, 01:46 PM
  4. Replies: 0
    Last Post: 02-28-2014, 04:55 PM
  5. [SOLVED] Macro to show a message when some cells in between before the last cell are empty
    By Swagata in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-26-2012, 02:03 AM
  6. [SOLVED] help with formula. It works but empty cells show#VALUE
    By nje in forum Excel General
    Replies: 4
    Last Post: 10-22-2012, 04:11 PM
  7. Formula to use number in cell to left & ignore any empty cells
    By joya in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2007, 12:52 PM

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