+ Reply to Thread
Results 1 to 4 of 4

Finding percentage when a condition is met

  1. #1
    Registered User
    Join Date
    02-16-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    64

    Finding percentage when a condition is met

    Hi All,

    I am looking to find the percentage of when something is predicted and comes true over when it only comes true.

    I have attached an excel sheet which might help.

    To make things slightly harder. i would like to have the percentage only calculated over a range which is varied by filters on other columns.

    Thanks for your help,

    Adam
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Finding percentage when a condition is met

    Hi Adam,

    Your question and spreadsheet are kind of confusing.

    Please let us know what cells do you need a percentage. What do you mean by percentage? What are the filters on the other columns?

    Please specific on a sample answer... for example, what is the percentage of that pass vs. fail? The result that I want to see is...

    It will help us better help you.

    Thanks.

  3. #3
    Registered User
    Join Date
    02-16-2015
    Location
    Ireland
    MS-Off Ver
    2010
    Posts
    64

    Re: Finding percentage when a condition is met

    Hey Dj,

    I actually posted the wrong excel graph. I hope this helps clarify.

    Thanks,

    Adam
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Finding percentage when a condition is met

    Hi Adam,

    Thanks for the clarifiction.

    Try this for Prediction = SUMPRODUCT((Table1[Pass/Fail]="Pass")*(Table1[Pass/Fail2]="Pass"))/COUNTIF(Table1[Pass/Fail2],"Pass")

    And for False Prediction = SUMPRODUCT((Table1[Pass/Fail]="Pass")*(Table1[Pass/Fail2]="Fail"))/COUNTIF(Table1[Pass/Fail2],"Pass")

    I think SUMPRODUCT works best for your question since you want to compare 2 columns. This is an array formula that compares whole arrays (range of data).

    So, let’s break down for the Prediction:
    (Table1[Pass/Fail]="Pass") is a condition that returns {FALSE;TRUE;FALSE;FALSE;TRUE;FALSE;TRUE}

    [quick trick… highlight the condition, then press F9 – should temporarily show you want this computes, press ESC to return to the formula]

    (Table1[Pass/Fail2]="Pass") is a condition that returns {FALSE;FALSE;FALSE;TRUE;TRUE;TRUE;TRUE}

    Now when we multiply these 2 conditions, the two produces {0;0;0;0;1;0;1}.

    And since we are using SUMPRODUCT, we sum all the items in {0;0;0;0;1;0;1} and we get 2.

    Lastly, the COUNTIF simply takes the L column and counts the number of “Pass”, and this is 4. I might be reading this denominator wrong. Please correct this if needed.

    So, the whole PREDICTION formula = 2/4 = 50%

    If this is not what you are looking for, please let me know.

    Hope this helps.

+ 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. Replies: 0
    Last Post: 02-18-2015, 04:45 PM
  2. Finding the percentage
    By praetorianprefect in forum Excel General
    Replies: 3
    Last Post: 03-19-2012, 12:23 PM
  3. finding a function and getting a Percentage
    By kickerjeff41 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-22-2008, 02:32 PM
  4. Finding the right percentage formula
    By Papa Pro in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 10-06-2007, 04:35 PM
  5. Finding percentage for a new row
    By alonge in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-24-2007, 08:32 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