+ Reply to Thread
Results 1 to 5 of 5

#DIV/0! Error

  1. #1
    Registered User
    Join Date
    10-25-2013
    Location
    West Midlands, England
    MS-Off Ver
    Excel 2007
    Posts
    7

    #DIV/0! Error

    Good morning everyone.

    I've entered the following formula =IF(V5<4,"0",SUM(L5)/K5). Where K5 sometimes = zero the result is obviously a #DIV/0! error.

    I think that the solution could be found by embedding "=IF(K5=0,"", (L5)/K5)" into the formula but I'm not sure how. Can anybody help me on this please, or suggest a simpler/more efficient solution. By the way, I've had to use the "sum(L5)/K5" in order to resolve an earlier error report.

    Thanks

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,735

    Re: #DIV/0! Error

    Try this:

    =IF(V5<4,"0",IF(K5=0,"",SUM(L5)/K5))

    You may not require the quotes around the zero.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    10-25-2013
    Location
    West Midlands, England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: #DIV/0! Error

    Many, many thanks Pete - problem solved. I'm working on a complex, multi-round, scoring system for a target shooting club in the West Midlands so I'm sure this won't be the last of my questions

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,735

    Re: #DIV/0! Error

    Well then you probably do not require the quotes around the zero - you want the formula to return a numeric result rather than a text value that looks like a number.

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

    Also, since you are relatively new to the forum, I would like to inform you that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  5. #5
    Registered User
    Join Date
    10-25-2013
    Location
    West Midlands, England
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: #DIV/0! Error

    Ok Pete, Thanks for the advice, it's much appreciated.

+ 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. 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
  2. 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
  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. [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