+ Reply to Thread
Results 1 to 3 of 3

Removing #DIV/0!

Hybrid View

  1. #1
    Registered User
    Join Date
    05-15-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    5

    Removing #DIV/0!

    Good Morning Excellers

    A B C D
    1 1 1 0.5
    2 #DIV/0!
    3 1 1
    4 TOTAL #DIV/0!


    Formula in Column D is =1/COUNTA(A1:C1) - this is replicated for Rows 1,2,3
    Because Row 2 is blank the formula returns #DIV/0!
    I want to remove #DIV/0! so that I can total the values in D4
    I have tried several versions of IF(ISERROR, but Excel always tells me that I have entered too many arguments.
    Is there any way out of this?
    With Regards

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Removing #DIV/0!

    Try one of these:
    Pre-Excel 2007
    =IF(COUNTA(A1:C1),1/COUNTA(A1:C1),0)

    Excel 2007 or later
    =IFERROR(1/COUNTA(A1:C1),0)

    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    05-15-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Removing #DIV/0!

    It worked perfectly Ron, thanks a million.

+ 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