+ Reply to Thread
Results 1 to 8 of 8

Excel Displaying Zero For Cell With Formula

  1. #1
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Ontario
    MS-Off Ver
    365
    Posts
    157

    Excel Displaying Zero For Cell With Formula

    Please help.

    In Cell D1 I have a formula SUM(A1:C1)

    If there are no entries I want D1 to be blank however if I enter 0,0,0 in cells A1:C1 then I want the formula to return 0 in D1.

    What is the easiest way to do this?

    Thanks

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Excel Displaying Zero For Cell With Formula

    Try

    =IF(COUNTIF(A1:C1,0)=0,"",SUM(A1:C1))

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Excel Displaying Zero For Cell With Formula

    Hi PaddyP,

    Try this is D1

    =IF(LEN(A1&B1&C1)=0,"",SUM(A1:C1))
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Ontario
    MS-Off Ver
    365
    Posts
    157

    Re: Excel Displaying Zero For Cell With Formula

    Wow excellent. Thanks!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel Displaying Zero For Cell With Formula

    Here's another one...

    =IF(COUNT(A1:C1),SUM(A1:C1),"")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Ontario
    MS-Off Ver
    365
    Posts
    157

    Re: Excel Displaying Zero For Cell With Formula

    Just an FYI the first suggestion does not work if you have a value other than zero in all three cells.

    2nd and 3rd formulas work great!

    Thanks again to everyone for your help. Solved!

  7. #7
    Forum Contributor
    Join Date
    01-28-2008
    MS-Off Ver
    Excel 365
    Posts
    157

    Re: Excel Displaying Zero For Cell With Formula

    Can't you format D1 to not show 0? I think the custom format is 0;-0;;

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel Displaying Zero For Cell With Formula

    You're welcome. Thanks for the feedback!

+ 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. Leaving a cell (with formula) displaying as empty if theres data in another cell
    By bluenose_1878 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-27-2015, 12:27 PM
  2. Replies: 2
    Last Post: 02-05-2013, 04:52 AM
  3. formula for displaying a cell when another is populated
    By gurj_sandhu in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-17-2008, 11:18 AM
  4. displaying formula in cell
    By ducmis in forum Excel General
    Replies: 3
    Last Post: 08-10-2007, 01:08 PM
  5. Formula result not displaying in cell
    By [email protected] in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-13-2006, 04:35 PM
  6. Displaying Formula Results in Cell
    By macshimi in forum Excel General
    Replies: 3
    Last Post: 04-11-2006, 02:50 AM
  7. RE: Text in formula bar is not displaying in cell
    By Mike in forum Excel General
    Replies: 0
    Last Post: 08-29-2005, 05:05 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