+ Reply to Thread
Results 1 to 7 of 7

#div/0!

  1. #1
    Registered User
    Join Date
    09-08-2014
    Location
    St Petersburg, FL
    MS-Off Ver
    Office 07
    Posts
    37

    #div/0!

    I need help adding to my existing ratio formula the formula to get rid of the divided by 0 error.Custom Ratio Sheet.xlsx

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: #div/0!

    Hi,
    Wrap it in an =IFERROR() function. e.g. re N2

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

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    09-08-2014
    Location
    St Petersburg, FL
    MS-Off Ver
    Office 07
    Posts
    37

    Re: #div/0!

    Ok that takes the error away but if there is a number in column F (19) and a 0 in column E shouldn't the ratio read 19:0? I am trying to show how may trial lenses are used per 6 PK ordered.

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: #div/0!

    Quote Originally Posted by lornaerland View Post
    Ok that takes the error away but if there is a number in column F (19) and a 0 in column E shouldn't the ratio read 19:0? I am trying to show how may trial lenses are used per 6 PK ordered.
    You originally asked about the Ratio column (there are two) and I gave you an answer that was relevant to column N.

    Are you now asking about column G? If so then perhaps in G2
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: #div/0!

    Quote Originally Posted by lornaerland View Post
    ...a 0 in column E shouldn't the ratio read 19:0?
    No, it shouldn't.

    Given E2 =0,
    (E2/E2) isn't 0.

  6. #6
    Registered User
    Join Date
    09-08-2014
    Location
    St Petersburg, FL
    MS-Off Ver
    Office 07
    Posts
    37

    Re: #div/0!

    I am still trying to fix column G so maybe I need to start over. Column E is 6 pack boxes, column F is Trial lenses used. The ratio I want is how many trial lenses were use per 6 pack box? So if 5 boxes were ordered and 10 trials the ratio should be 2:1 correct? But what if 0 boxes have been ordered but 19 trials. What should the ratio look like 19:0? Can I modify this formula to reach my desired output or is my desired output incorrect?

  7. #7
    Registered User
    Join Date
    09-08-2014
    Location
    St Petersburg, FL
    MS-Off Ver
    Office 07
    Posts
    37

    Re: #div/0!

    Ok I took Richard Buttrey's formula =IFERROR(ROUND((F2/E2),1)&":"&(E2/E2),F2&":1") and changed the end to F2&":0") and that is giving me the desired out come. Thank you for your help!!!

+ 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