+ Reply to Thread
Results 1 to 2 of 2

Zero cell

  1. #1
    Registered User
    Join Date
    09-06-2006
    Posts
    1

    Zero cell

    When doing the sum of two empty cells. What is the formula to show "0" or empty and not the usual #DIV/0!.

    Thanks.

    Misterg

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hi,

    If your summing two blanks cells it will return Zero.

    If your dividing two cells it will return #DIV/0!.

    Say the cells you are doing are A1 and B1 then enter the below formula in C1

    =IF(ISERROR(A1/B1),0,A1/B1)

    I checked to see if a error and returns 0 if true or A1/B1 if false.

    VBA Noob

+ 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