+ Reply to Thread
Results 1 to 6 of 6

Percent above

  1. #1
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Percent above

    I need to do a calculation based upon times. I will have a random number of cells, and each will have a time (duration) based upon a simple calculation derived from 2-3 adjoining cells. Let's say that this duration will be listed starting at G2 and going down. I need to calculate what percentage of the times that are a duration of less than 90 seconds...ideally striving for a percentage above 90%

    Thanks!

  2. #2
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Percent above

    Here is a brief example sheet.
    Attached Files Attached Files

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Percent above

    do note that because time is recognized as decimals in Excel, it's better to round them. so in F2, use:
    =MROUND(C2-A2,"0:0:1")
    i'm rounding to the nearest second. copy down

    this helps you get how many are below 90 seconds and above 0
    =COUNTIFS(F2:F22,"<"&TIME(,1,30),F2:F22,">0")

    this helps you count how many of column A are filled:
    =COUNT(A2:A22)

    so just divide them & format to percentage:
    =COUNTIFS(F2:F22,"<"&TIME(,1,30),F2:F22,">0")/COUNT(A2:A22)

    or without relying on column F, try:
    =SUMPRODUCT((MROUND(C2:C22-A2:A22,"0:0:1")<TIME(,1,30))*(MROUND(C2:C22-A2:A22,"0:0:1")>0))/COUNT(A2:A22)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Percent above

    Thanks a lot. I will not be able to check it for a few days (3day weekend!!!!!), but I will take care of it when I return to work. Thank you!!

  5. #5
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Percent above

    I just applied it to my worksheet, and it seems to work perfectly. Thank you very much for the help!!

  6. #6
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Percent above

    Delete message

+ 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. Formula or function to find percent of a percent in a population
    By maldron in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-25-2013, 08:26 PM
  2. How to Times a percent, and be able to change percent.
    By ILCentral in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2012, 11:55 AM
  3. Replies: 4
    Last Post: 02-01-2012, 11:24 AM
  4. Graph Actual Percent with Suggested Percent
    By jaytaylor in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 07-05-2010, 07:09 AM
  5. [SOLVED] Formatting a number to look like a Percent without a percent sign
    By David Iacoponi in forum Excel General
    Replies: 2
    Last Post: 09-15-2005, 02:05 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