+ Reply to Thread
Results 1 to 5 of 5

#DIV/0! Error

  1. #1
    Registered User
    Join Date
    01-25-2019
    Location
    USA
    MS-Off Ver
    MS 2013
    Posts
    27

    #DIV/0! Error

    Is there a common way to allow add/average/sum functions to ignore this error & still complete the formula? For example... I have two tabs.. Tab A has my results, Tab B my data. In Tab A, I pull data from Tab B into cells A1 & A2.. in A3, I want to average the two. A1 is fine, but A2 has the #DIV/0! error as the data from Tab B is at times incomplete. When that happens, Cell A3 gives me the same DIV/0! error. I've tried using =IF(ISERROR(AVERAGE(A1:A2)),"-",AVERAGE(A1:A2)) which gets rid of the error, but it won't calculate the data.

    I thought for a second, I should use the same formula in cells A1 & 2, but some of the data from Tab B already has very long formulas.. one of which I previously received help from on an earlier thread.

    Any thoughts?
    "Ever thus to deadbeats"

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,978

    Re: #DIV/0! Error

    So, in A1 and A2:

    =IFERROR(your_formula,"")

    In other words, deal with each possible error message individually, not within the summative formula.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: #DIV/0! Error

    Try =averageif(a1:a2,">=0") or =aggregate(1,6,a1:a2)
    Click the * to say thanks.

  4. #4
    Registered User
    Join Date
    01-25-2019
    Location
    USA
    MS-Off Ver
    MS 2013
    Posts
    27

    Re: #DIV/0! Error

    Once again, yooos guys come to the rescue. The Dude abides..

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,978

    Re: #DIV/0! Error

    The Dude abides where?

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Odd Error Handling Behaviour; goes to error handler even when no error?
    By kalikj in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-04-2018, 10:04 AM
  2. [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
  3. 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
  4. Receiving following error “Complie error : syntax error” Help
    By masond3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-02-2012, 10:19 AM
  5. 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
  6. 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
  7. [SOLVED] 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