+ Reply to Thread
Results 1 to 5 of 5

Calculate a Percentage in a cell ONLY if two seperate cells have a value greater than zero

  1. #1
    Registered User
    Join Date
    05-15-2012
    Location
    Earth
    MS-Off Ver
    Excel 2003
    Posts
    10

    Calculate a Percentage in a cell ONLY if two seperate cells have a value greater than zero

    Hi,
    I have a CELL(A), which has a default value of 0%. I would like CELL(A) to show the percentage of change between CELL(B) and CELL(C). By Default CELL(B) and CELL(C) have a value of "0.00"
    ONLY when BOTH CELL(B) AND CELL(C) have values above "0.00", than I would like to populate CELL(A) with the percentage change.

    I am stumped on this one. I had thought something like this might have work:
    =IF C>0,B>0,C-B/C

    As you can see, I am far from a solution...
    Thanks!

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

    Re: Calculate a Percentage in a cell ONLY if two seperate cells have a value greater than

    a1=if(and(b1>0,c1>0),(c1-b1)/c1,"")
    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
    Registered User
    Join Date
    05-15-2012
    Location
    Earth
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Calculate a Percentage in a cell ONLY if two seperate cells have a value greater than

    Thanks oeldere,
    That worked like a charm!
    Could you show me how to do the same calculation, but instead expanding it into columns instead of a CELL?

    For example:
    a1=if(and(b1:b100>0,c1:c100>0),(c1:c100-b1:b100)/c1:c100,"")

    CELL a1 would adjust accordingly every time a number greater than "0" was placed in both adjacent cells. So CELL a1 would change ONLY if CELL c50 AND b50 had a value greater than "0"

    Thanks!!

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

    Re: Calculate a Percentage in a cell ONLY if two seperate cells have a value greater than

    Just copy the formula in cel a1 and drag the formula down to the cells below.

    Then the formula expands to your needs (if I understand your question well enough).

    Just try it and reply if this is what you want to achieve.

  5. #5
    Registered User
    Join Date
    05-15-2012
    Location
    Earth
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Calculate a Percentage in a cell ONLY if two seperate cells have a value greater than

    Hi,
    thanks so much for all your help.
    I have attached an example spreadsheet with what it is I am trying to accomplish
    Thanks!
    Attached Files Attached Files

+ 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. Calculate percentage of cells answered yes in a column
    By Alinkowski in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-26-2019, 03:38 PM
  2. Seperate Values in single cell seperated by [alt+enter] into seperate cells
    By Coquito in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-22-2012, 04:24 PM
  3. calculate cells between two values, and obtain the percentage
    By caldera55 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-15-2008, 06:23 PM
  4. Replies: 1
    Last Post: 01-04-2006, 07:40 PM
  5. Calculate percentage change between 2 cells
    By ascheluchin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-15-2005, 03:33 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