+ Reply to Thread
Results 1 to 4 of 4

Percentage Calculation

  1. #1
    Registered User
    Join Date
    06-30-2008
    Location
    Georgia
    MS-Off Ver
    2013
    Posts
    72

    Question Percentage Calculation

    \1

    I believe my comment in the picture (see link above) explains what I am trying to accomplish. Basically, If column A is a number greater than 0 AND column B is equal to 0, column D should display 100%, otherwise it should divide column C by column B.

    at the same time though,

    If both column A and column B both equal 0, column D should display a blank cell because you can't divide by 0's it'll throw an error.


    Thanks for the help!

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try:

    =IF(A3+B3=0,"",IF(AND(A3>0,B3=0),100,C3/B3))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-30-2008
    Location
    Georgia
    MS-Off Ver
    2013
    Posts
    72
    perfect NBVC! I just got some more information about this though....

    If column C is a negative change, I need the percentage to display as a negative percentage. If column C is a positive change, I need the percentage to display as a positive percentage.

    Do I just make the "100" a "-100"?
    Last edited by NBVC; 09-16-2008 at 02:54 PM. Reason: Fixed message formatting

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Does this only apply when A3>0 and B3=0?

    If so, try:

    =IF(A3+B3=0,"",IF(AND(A3>0,B3=0),IF(C3>0,100,-100),C3/B3))

+ 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. Calculation settings with multiple workbooks open
    By winshent in forum Excel General
    Replies: 0
    Last Post: 09-04-2008, 05:44 AM
  2. Excel percentage calculation
    By Acerpipo in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-24-2008, 06:33 PM
  3. Excel and Percentage Calculation
    By servietek in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-23-2008, 05:06 AM
  4. calculation with a row value and percentage
    By alonge in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-20-2007, 09:24 PM
  5. Disable calculation on selected sheets only
    By MikeTNT in forum Excel General
    Replies: 7
    Last Post: 11-12-2006, 01:41 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