+ Reply to Thread
Results 1 to 7 of 7

Percentage divide by zero

  1. #1
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    129

    Percentage divide by zero

    Hello,

    I would like to find the percentage of accuracy between payment terms and the actual days paid. I'm getting errors when 0 is one or both of the divided terms.
    Any assistance would be appreciated
    Thank you very much
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,102

    Re: Percentage divide by zero

    you will have to test for zero with an if or iferror or iserror

    dont see the the calculation in your example or any errors - can you show the issues you are having on the sheet - so we know exactly what you are doing rather than assume
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Percentage divide by zero

    You not say which way round you are testing (I would use A/B), so maybe this...

    If you only want the error removed...
    =IF(A2=0,"",B2/A2)
    or this if you want everything removed...
    =IF(OR(A2=0,B2=0),"",B2/A2)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    129

    Re: Percentage divide by zero

    Hello,

    I have attached the zero results I am receiving. Ideally I would like to have the percentage calculated.
    Thank you for your replies
    Attached Files Attached Files

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,102

    Re: Percentage divide by zero

    0/number will return a Zero - so not an error
    if you want the condition for either to be 0 use
    FDibbins modified
    =IF(OR(F2=0, G2=0), 1, F2/G2)

    and format the column for %

  6. #6
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    129

    Re: Percentage divide by zero

    That's great. Thank you so much

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Percentage divide by zero

    etaf, thanks for the assist

+ 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] Countif and divide by formula needs to become percentage
    By argentraven in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-30-2015, 05:17 PM
  2. [SOLVED] Formula for percentage Increase and corresponding percentage decrease (and viceversa)
    By jcroque89 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-06-2015, 10:25 AM
  3. Getting percentage from columns and raws, divide by 0 error...
    By masta-s in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-09-2013, 04:44 AM
  4. Total value divide from number to percentage?
    By yakabod in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 02-27-2012, 01:32 PM
  5. Divide two columns then express as a percentage
    By kylie112 in forum Excel General
    Replies: 4
    Last Post: 01-03-2012, 04:05 AM
  6. Replies: 2
    Last Post: 02-01-2006, 12:50 PM
  7. divide a no. in a column percentage wise
    By shlomo in forum Excel General
    Replies: 1
    Last Post: 03-28-2005, 02:31 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