+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : If then formula issue

  1. #1
    Registered User
    Join Date
    09-26-2008
    Location
    North Myrtle Beach
    MS-Off Ver
    365 Business
    Posts
    82

    If then formula issue

    I am having trouble creating a formula that will return a blank cell (i.e "") if the sum of a string of other cells equals "0"...if the sum of those cells does not equal "0", then the actual sum should be the answer.

    PHP Code: 
    EXcell H2=if(sum(H12:H15)="0","",(sum(H12:H15)) 
    I have tried this formula, but it still shows a "0" value instead of a blank cell. If I take out the word "SUM" it brings back an error....grrrrrrr - I know there is a way to do this! Please help.
    Last edited by bjohnsonac; 04-09-2009 at 12:56 PM. Reason: I figured it out on my own:)

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: If then formula issue

    Why not just sum the cells in the usual way, and then use formatting to suppress display of zero? E.g.,

    =SUM(H12:H15) and format as General;-General;
    Entia non sunt multiplicanda sine necessitate

+ 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