+ Reply to Thread
Results 1 to 13 of 13

Error #DIV/0!

  1. #1
    Registered User
    Join Date
    06-21-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    39

    Error #DIV/0!

    Below value is in B6 from U6 as below and formula is V2 , due to 0 divided by value getting error in as #DIV/0! in V2

    5 4 1 0 2 0 0 0 15 0 3 0 3 0 0 0 2 2 0 0 #DIV/0!


    formula in V6 as below, Pls help

    =(C6/B6*10)+(E6/D6*10)+(G6/F6*10)+(I6/H6*10)+(K6/J6*15)+(M6/L6*15)+(O6/N6*10)+(Q6/P6*10)+(S6/R6*5)+(U6/T6*5)

  2. #2
    Forum Contributor
    Join Date
    07-24-2012
    Location
    Denver, CO
    MS-Off Ver
    365
    Posts
    230

    Re: Error #DIV/0!

    H6, P6, and T6 all have values of 0. You can't divide something by 0; that is impossible.
    Last edited by LaffyAffy13; 08-05-2013 at 10:37 AM. Reason: spelling error
    ~~LaffyAffy13~~

    If I have helped you solve your problem, please be sure to click at the bottom left of my post.

    Thanks.

  3. #3
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Error #DIV/0!

    Hi,

    I believe that at least three of your fractions in that formula currently have denominators equal to zero (cells H6, P6 and T6), and, since division by zero is not defined mathematically, your resulting formula will be in error.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  4. #4
    Registered User
    Join Date
    06-21-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Error #DIV/0!

    any other option ??

  5. #5
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Error #DIV/0!

    Depends. What would you like to be returned in those cases where you have division by 0?

    Regards

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.85 for Mac MS 365
    Posts
    8,513

    Re: Error #DIV/0!

    Ignore post, this can't be what you were looking for.
    Last edited by Sam Capricci; 08-05-2013 at 10:51 AM.

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.85 for Mac MS 365
    Posts
    8,513

    Re: Error #DIV/0!

    XOR, not trying to hijack your post, was working on it when i saw you all posted.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.85 for Mac MS 365
    Posts
    8,513

    Re: Error #DIV/0!

    how about trying this one...
    =IFERROR(C44/B44*10,0)+IFERROR(E44/D44*10,0)+IFERROR(G44/F44*10,0)+IFERROR(I44/H44*10,0)+IFERROR(K44/J44*15,0)+IFERROR(M44/L44*15,0)+IFERROR(O44/N44*10,0)+IFERROR(Q44/P44*10,0)+IFERROR(S44/R44*5,0)+IFERROR(U44/T44*5,0)
    I'm sure there is a better more concise way to write it but this one worked for me by returning 13 from your data. (and I put your numbers in row 44).

  9. #9
    Forum Contributor
    Join Date
    07-24-2012
    Location
    Denver, CO
    MS-Off Ver
    365
    Posts
    230

    Re: Error #DIV/0!

    dingdang,

    You need to change the values in H6, P6, and T6 to something other than 0. Do your columns B through U all have values like your example above, with 0's? In other words, are you receiving "#DIV/0" elsewhere, as well?

  10. #10
    Forum Contributor
    Join Date
    07-24-2012
    Location
    Denver, CO
    MS-Off Ver
    365
    Posts
    230

    Re: Error #DIV/0!

    Sambo kid's response should work for you. It takes any cell with an error and just replaces the error with a value of 0. Here is an edited version to match your question. All credit goes to Sambo kid.
    =IFERROR(C6/B6*10,0)+IFERROR(E6/D6*10,0)+IFERROR(G6/F6*10,0)+IFERROR(I6/H6*10,0)+IFERROR(K6/J6*15,0)+IFERROR(M6/L6*15,0)+IFERROR(O6/N6*10,0)+IFERROR(Q6/P6*10,0)+IFERROR(S6/R6*5,0)+IFERROR(U6/T6*5,0)

  11. #11
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.85 for Mac MS 365
    Posts
    8,513

    Re: Error #DIV/0!

    Thanks LA13 for the credit. Also wasn't trying to hijack your work either, as I noted I was working on it when you and XOR LX posted.
    But there has to be a more elegant way to write that.

  12. #12
    Registered User
    Join Date
    06-21-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Error #DIV/0!

    yes!! its work..

    Many thanks sambo kid and LA13

  13. #13
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.85 for Mac MS 365
    Posts
    8,513

    Re: Error #DIV/0!

    Cool, don't forget to mark as solved then.
    And any rep points for all who helped you are always appreciated.
    Last edited by Sam Capricci; 08-05-2013 at 11:51 AM.

+ 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. 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
  2. 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
  3. [SOLVED] Macro error - Run time error 1004 (App defined/Object Defined error)
    By jlax34 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-06-2012, 03:02 PM
  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