+ Reply to Thread
Results 1 to 7 of 7

How do I take a percentage of total time over a 7 day period when time exceeds 24:00 hrs?

  1. #1
    Registered User
    Join Date
    06-11-2015
    Location
    NE US
    MS-Off Ver
    2013
    Posts
    70

    How do I take a percentage of total time over a 7 day period when time exceeds 24:00 hrs?

    I have attached a screenshot of what I am working with and attempting to accomplish.

    For 'Tank Usage over 7 Days' I have calculated average time & average minutes wherein average time is by function =AVERAGE(A1, B1, etc.) in the format [hh]:mm and average minutes is by function =(A1)*24*60 in the format General.

    Then I took totals for all tanks using the corresponding cells, but what is the formula to turn this data into percentages by average % of each tank, and by total % of each tank over a 7 day period when time exceeds 24 hours?

    Thanks.
    Attached Images Attached Images

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,762

    Re: How do I take a percentage of total time over a 7 day period when time exceeds 24:00 h

    You can't average percentages. You calculate an average percentage by using the totals of the two numbers used to calculate the percentage. Which leads my next question: What does % mean in this case? There is no context.

    This would be a lot easier to help with if you attach your Excel file instead of an image.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    06-11-2015
    Location
    NE US
    MS-Off Ver
    2013
    Posts
    70

    Re: How do I take a percentage of total time over a 7 day period when time exceeds 24:00 h

    Quote Originally Posted by 6StringJazzer View Post
    You can't average percentages. You calculate an average percentage by using the totals of the two numbers used to calculate the percentage. Which leads my next question: What does % mean in this case? There is no context.

    This would be a lot easier to help with if you attach your Excel file instead of an image.
    Why can't you average percentages?

    If you treat them like ordinary values then this formula seems to work: =IF(COUNT(AL9:AL201),AVERAGE(AL9:AL201),"")

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How do I take a percentage of total time over a 7 day period when time exceeds 24:00 h

    Again, hard to determine without knowing what we are discussing but take for example,

    Group 1: 99, 100 Avg = 99.5 %(out of 100) = 99.5
    Group 2: 88, 85, 78, 83, 87, 89 Avg = 85, % = 85.0
    Avg % = 92.3 which is decptively high if we are measuring the same thing in Group 1 and Group 2
    Real Avg % should be 88.6
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: How do I take a percentage of total time over a 7 day period when time exceeds 24:00 h

    Quote Originally Posted by 6StringJazzer View Post
    You can't average percentages.
    Not necessarily true..
    Quote Originally Posted by seanpod View Post
    Why can't you average percentages?
    More context is needed.
    It really depends on what the percentage is, or how it's calculated.

    If the devisor is the same for each percentage, then yes, the average will be correct.
    But if you have different devisors among each percentage, then the average will be inaccurate (as Chemist demonstrated in post #4)


    But I think your issue probably has nothing to do with that.
    You're probably having an issue with displaying time greater than 24 hours.
    Try formatting your cell as [hh]:mm:ss to show time past 24 hours.

  6. #6
    Registered User
    Join Date
    06-11-2015
    Location
    NE US
    MS-Off Ver
    2013
    Posts
    70

    Re: How do I take a percentage of total time over a 7 day period when time exceeds 24:00 h

    Quote Originally Posted by Jonmo1 View Post
    Not necessarily true..


    More context is needed.
    It really depends on what the percentage is, or how it's calculated.

    If the devisor is the same for each percentage, then yes, the average will be correct.
    But if you have different devisors among each percentage, then the average will be inaccurate (as Chemist demonstrated in post #4)


    But I think your issue probably has nothing to do with that.
    You're probably having an issue with displaying time greater than 24 hours.
    Try formatting your cell as [hh]:mm:ss to show time past 24 hours.
    I would post the spreadsheet but it is for work and I am at home now, so I will try to explain more below.

    So across a period of time (e.g., one week), I have summed the total time ([hh]:mm) in cell A1 (just for example) for each tank while in a production phase, then in cell A2 converted that time into minutes (by multiplying the total time from cell A1 by 24 and then again by 60), after which I used the function '=(A2/1440)*100' in cell A3 to get my percentages.

    Therefore, for seven days I have seven different percentages, all with the same divisor of 1440, which is the amount of minutes in a day (24*60). Now of course when I apply the 'IF(COUNT(xx.....' formula I posted in my last post, I am taking the values derived as percentages (seven total) across the week, so the divisor rule is no longer in effect since the numbers have already been divided.

    So I am correct in what I did, right?
    Last edited by seanpod; 06-30-2015 at 08:35 PM.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,762

    Re: How do I take a percentage of total time over a 7 day period when time exceeds 24:00 h

    This fills in a lot of missing information. So the percentage is the percent utilization of a tank during a 24-hour period--the percent of the day that it is used. And you want the average percent utilization over 7 days. So, yes in this case it is valid to average the percentages, because the divisors are all the same. (The explanation immediately above doesn't match your image from the first post so it's a little difficult to put this all together.)

    I would probably use this formula, although it effectively does the same thing as yours

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] Formula Needed - Calculate total hours that fall between a specific time period.
    By JennyGP in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 04-19-2020, 02:44 AM
  2. Payroll time sheet calculation where time exceeds 24 hours
    By Rolo1 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-23-2014, 08:57 AM
  3. Charting Total Percentage Change over short time period
    By oct in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-12-2013, 12:09 PM
  4. From an AM time to an AM time, exceeds 24 hours. How to calculate?
    By bodycode in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-26-2013, 03:56 AM
  5. Calculate percentage of time period
    By Ricardo Monteiro :^) in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-06-2006, 10:50 AM

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