+ Reply to Thread
Results 1 to 5 of 5

How to Fix #DIV/0! Error

  1. #1
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    How to Fix #DIV/0! Error

    Hello,

    The following formula has a #DIV/0! error message. Currently all of the Cells involved in this formula are blank but will eventually have numbers in some or all of them.

    =IF(SUM(Q639:Q659)="","",SUM(Q639:Q659)/COUNTIF(Q639:Q659,">=1"))

    I edited the formula to this and I got a "Too Many Arguments for this Function" message; =IFERROR(SUM(Q639:Q659)="","",SUM(Q639:Q659)/COUNTIF(Q639:Q659,">=1"),"")

    Thank you,

    Patrick

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,603

    Re: How to Fix #DIV/0! Error

    Untested:

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,603

    Re: How to Fix #DIV/0! Error

    I suspect that this doesn't work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    A sum isn't going to equal nothing, it will equal a numeric value.

  4. #4
    Forum Contributor
    Join Date
    12-16-2014
    Location
    Riverside, IA
    MS-Off Ver
    2010
    Posts
    156

    Re: How to Fix #DIV/0! Error

    TMS,

    It worked! Then I figured that the IF="","", wasn't working so I eliminated it and your changes still worked:

    =IFERROR(SUM(Q639:Q659)/COUNTIF(Q639:Q659,">=1"),"")

    Thanks Much!

    Patrick

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,603

    Re: How to Fix #DIV/0! Error

    You're welcome. Thanks for the rep.

+ 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. [SOLVED] Run-tim error -2147467259(80004005): Automation error Unspecidied error
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-25-2014, 12:12 PM
  2. Excel macro (compile error. syntax error.) error
    By salar_younis in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-06-2014, 06:11 AM
  3. Error "run-time Error '1004': General Odbc Error
    By D4WNO77 in forum Access Tables & Databases
    Replies: 2
    Last Post: 07-16-2012, 09:55 AM
  4. Error 75 File/Path access error, sometimes Error 1004
    By smokebreak in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-16-2011, 02:35 PM
  5. Error Handling - On Error GoTo doesn't trap error successfully
    By David in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-16-2006, 02:10 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