+ Reply to Thread
Results 1 to 5 of 5

Show Dash Rather Than Zero

  1. #1
    Registered User
    Join Date
    05-28-2010
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    Show Dash Rather Than Zero

    I have a long SUMIF formula in a cell. If the SUMIF doesn't find any matches, I'd like to display a dash or hyphen rather than a zero.

    Is there a way of doing this other than an IF that uses the same formula for both the logic test and value parameters? Performance and duplication concerns aside, there's also the problem of cell contents doubling in size and becoming very unreadable due to the length of each of my SUMIFs alone.

  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: Show Dash Rather Than Zero

    Format the cells as, for example, 0;;-
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Show Dash Rather Than Zero

    or format cells a accounting no symbol
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    06-21-2010
    Location
    Suffolk, England
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Show Dash Rather Than Zero

    How about using an IF statement

    =IF(A1=0,"-","Add sumif formula here")

  5. #5
    Registered User
    Join Date
    05-28-2010
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Show Dash Rather Than Zero

    shg and martin, you dudes are awesome.

+ 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