+ Reply to Thread
Results 1 to 8 of 8

Excel 2010: The dredded #DIV/0! error

  1. #1
    Registered User
    Join Date
    06-07-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    7

    Unhappy Excel 2010: The dredded #DIV/0! error

    Hi there.
    I am using Excel 2010.

    I am trying to calculate the profitmargin in percentage for several companies for a comparison.

    I find the (salesprice - cost price = profit)
    And after that i find the profit divided on sales prices multiply 100 is profitmargin in percentage.

    But, if the sales price is zero, I get the error #DIV/0!

    I have already googled and tried several solutions.
    Like:
    =IF(ISERROR((E7-C7)/E7*100),"",(E7-C7)/E7*100)
    =IF(E8=0,"",((E8-C8)/E8)*100)
    and some more...

    If I write #N/A I get #VALUE!


    I have the following columns: sales price, cost price, profit in percentage.

    Any clue on how to NOT get those errors in those cells with out a value.
    The cost price will always be there, but sales price is only if the company have bought it.

    I am losing my mind over this...
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Excel 2010: The dredded #DIV/0! error

    Not tested because you add an PNG in which we can't test it.

    You could try this one.

    =iferror(IF(ISERROR((E7-C7)/E7*100),"",(E7-C7)/E7*100),"")
    Last edited by oeldere; 08-05-2013 at 07:41 AM. Reason: change semicolon in colon
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Excel 2010: The dredded #DIV/0! error

    Adjust you formula like this:
    =IF([sales price cell]="","",[your old formula])
    When I say semicolon, u say comma!

  4. #4
    Registered User
    Join Date
    06-07-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Excel 2010: The dredded #DIV/0! error

    You could try this one.
    =iferror(IF(ISERROR((E7-C7)/E7*100),"",(E7-C7)/E7*100);"")
    Nope, got a error message stating: "It is something wrong with your formula".

  5. #5
    Registered User
    Join Date
    06-07-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Excel 2010: The dredded #DIV/0! error

    Trying the next...

  6. #6
    Registered User
    Join Date
    06-07-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Excel 2010: The dredded #DIV/0! error

    Nope, the same error on that too.

  7. #7
    Forum Contributor
    Join Date
    07-02-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    197

    Re: Excel 2010: The dredded #DIV/0! error

    Like L-Drr
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-07-2013
    Location
    Oslo
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Excel 2010: The dredded #DIV/0! error

    I see you used semi commas, I used only commas.
    =IF(B4=0;"";(B4-$A4)/B4)

    But, works, like a charm now.

    Super thanks...
    I am very grateful for the help.

+ 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] If Then Error [Excel 2010/14] (VBA Only)
    By lloydgodin in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-11-2013, 04:21 PM
  2. Replies: 2
    Last Post: 09-12-2012, 01:01 PM
  3. Error with Excel 2010...
    By chibouki in forum Excel General
    Replies: 0
    Last Post: 06-07-2012, 08:29 AM
  4. Help with #NAME? Error in Excel 2010
    By rhat in forum Excel General
    Replies: 5
    Last Post: 01-12-2011, 11:12 AM
  5. [SOLVED] dredded Negative or zero values dialog box
    By Damien in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2006, 11:00 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