+ Reply to Thread
Results 1 to 57 of 57

Find the percentage a cell is in a time range and the average time within each

  1. #1
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Find the percentage a cell is in a time range and the average time within each

    I have cells with military times. I would like to find a) the percentage of entries made within each time range, and b) the average time of a range within those cells.

    For example, if I have cells with the following times... 9:55, 10:00, 10:05, 11:00, 12:00, 13:00

    In this example...
    A) Since I only provide 1 entry, its 100%
    B) (9:55+10:00+10:05) / COUNTA of 3 = 10:00
    Attached Images Attached Images
    Last edited by cableghost; 05-02-2021 at 04:52 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the average time in a range

    Are you actually still using Excel 2007? I can't remember if AVERAGEIFS was available in 2007, or SUMIFS, or COUNTIFS. If they were, you could use AVERAGEIFS or SUMIFS/COUNTIFS. If not, you'd probably need to use SUMPRODUCT.

    Post a sample workbook, not a picture. See the yellow banner at the top of the page.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the average time in a range

    Thanks for the reply. I edited my Profile... using 2019.

    I've uploaded a worksheet with some data. You'll find raw data on the DATA sheet and the time-related calculations to go in my RESULTS sheet.
    Attached Files Attached Files
    Last edited by cableghost; 04-30-2021 at 09:42 PM.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the average time in a range

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

    You'll need to change 12:00-4:00 to 12:00-16:00

    Be a lot simpler if you put the start and end times in separate cells.

  5. #5
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the average time in a range

    Thank you. There is no actual end time, only start time. The range of time periods is a condition. I could certainly create another sheet that has the conditional time periods if needed.

    Does that change anything about the code you presented?

    I mean not to be rude, but I did upload the spreadsheet and it only has an Entry Time column.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the average time in a range

    I didn't say anything about the Entry Time. I was referring to the start and end times for the average time ranges.

    PHP Code: 
    Average
    9
    :30-9:50
    9
    :50-10:30
    10
    :30-12:00
    12
    :00-4:00 
    I know you uploaded the spreadsheet. Do you think I could come up with a formula like that posted from scratch without opening the spreadsheet, creating the formula and testing it? Why do you think I suggested changing the last criterion?


    Does that change anything about the code you presented?
    I don't mean to be rude, but have you tested the formula?

    If the start and end times for the time range criteria were in separate cells, you wouldn't need to mess about with TIMEVALUE, LEFT, RIGHT, LEN, and FIND. You could simply refer directly to the cells.

  7. #7
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the average time in a range

    I did not initially understand your mentioning of the start & end times. As I said, it wasn't meant to be rude.

    As for the formula, what is B5? Is that to say this formula is to be copied into every row and the B5 will change with the respective cell of that row, ie. B2, B3, etc?

    For the time ranges... I created an additional Sheet named TIME and placed the ranges within separate start and end times. Attached updated book.

    How would I then enter the data into the AVERAGEIF formula/ I'm guessing I need check for each condition in the formula?
    Attached Files Attached Files

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the average time in a range

    B5 is the cell with 9:30-9:50 in it. The formula goes in C5, next to it. That is, the column where you appear to have put all your other results. And yes, you put the formula in cell C5 and copy it down; the cell references will automatically adjust. Try it. Splitting the values was just a suggestion to simplify the formula. It isn’t essential. The formula posted works. Try it.

  9. #9
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the average time in a range

    I'm confused. In my original workbook, I don't have the time ranges identified. Where is the formula getting the ranges from to compare the Entry Time with?

    There may be some confusion. My original workbook only includes the Entry Time. It does not include the start and end time ranges, whether together or separate. The formula references col B; this col in the original workbook is the date for each row, not the time range.

    Edit: Disregard the above... The formula belongs in the RESULTS sheet, and yes, that works. Thank you!!

    Edit 2: There's something off with the formula or how its used, as the total percentage is off. I've attached the updated book with the formulas added.
    Attached Files Attached Files
    Last edited by cableghost; 05-01-2021 at 10:33 PM.

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Find the average time in a range

    Try this

    =AVERAGEIFS($C$2:$C$98,$C$2:$C$98,">="&J2,$C$2:$C$98,"<="&$K2)
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  11. #11
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the average time in a range

    @kvsrinivasamurthy, I think I understand this, however, I'm looking to find the percentage the entries are within each of the time ranges noted in the RESULTS sheet.
    Last edited by cableghost; 05-01-2021 at 11:18 PM.

  12. #12
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Find the average time in a range

    Pl show in file how you calculate step by step and what is the result with good explanation.

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the average time in a range

    This is one of your sample workbooks with various formulae added to demonstrate different approaches.

    RESULTS (v2) shows the formula if the start and end time ranges are split.
    Attached Files Attached Files

  14. #14
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the average time in a range

    Quote Originally Posted by TMS View Post
    This is one of your sample workbooks with various formulae added to demonstrate different approaches.
    Thank you for the explanation and the updated, shortened formula. However, the total percentage is greater than 100%.

    Attachment 730818

  15. #15
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the average time in a range

    Quote Originally Posted by kvsrinivasamurthy View Post
    Pl show in file how you calculate step by step and what is the result with good explanation.
    Thanks, though I don't see how I can use your formula overall. Maybe 'average time' is the inappropriate title for this post. Although I need to find the averages, I really want to discover the percentage of trades made during each time range, ie. X% of trades were made between 10:30-11:30.

    Edit: I must apologize... I actually do want both the averages and percentages. I did not explain myself properly. That said, I'm still confused with how to get the average time for each range with your formula.
    Last edited by cableghost; 05-02-2021 at 12:24 PM.

  16. #16
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Find the average time in a range

    See "Results (V2) column G

    ???
    Attached Files Attached Files

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Find the average time in a range

    I strongly suggest you completely reword the title of the opening post in this thread, otherwise your helpers are on a wild goose chase.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  18. #18
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the average time in a range

    Quote Originally Posted by AliGW View Post
    I strongly suggest you completely reword the title of the opening post in this thread, otherwise your helpers are on a wild goose chase.
    Helpful, thanks! I actually changed the title to include both.
    Last edited by cableghost; 05-02-2021 at 11:57 AM.

  19. #19
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the percentage a cell is in a time range

    Doh. Just realised ... it shouldn’t be shown as a percentage. It's an average time based on the time values within a time range. Format the values as Time.

  20. #20
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range

    Quote Originally Posted by TMS View Post
    Doh. Just realised ... it shouldn’t be shown as a percentage. It's an average time based on the time values within a time range. Format the values as Time.
    The start/end times in RESULTS (v2) are/were already formatted as Time.

  21. #21
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Find the percentage a cell is in a time range

    That said, I do provide specifics as to what I'm looking for.
    Our rules require you to summarise what you are trying to do in your thread title.

  22. #22
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Find the percentage a cell is in a time range

    I cannot see the average you want is meaningful. To me, the only meaningful average is number of trades per hour (or 30 mins). When a trade occurred within any given time period is not (in my view) material.

  23. #23
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range

    Quote Originally Posted by AliGW View Post
    Our rules require you to summarise what you are trying to do in your thread title.
    I did in the initial post, for which I've now changed. Forgive me for not spelling it out better.

  24. #24
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Find the percentage a cell is in a time range

    Does post#16 give results you want; number and % of trades in given time periods??

  25. #25
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range

    Quote Originally Posted by JohnTopley View Post
    I cannot see the average you want is meaningful. To me, the only meaningful average is number of trades per hour (or 30 mins). When a trade occurred within any given time period is not (in my view) material.
    Based on your answer, I wouldn't expect you to be a momo or event-based day trader. In such trading, there are clearly defined time periods. For example, the time period of 9:30-9:50 ET US is known as the 'morning drive', and it is critical to understand when within that time period most trades are made, especially if they are winning or losing trades. This in itself may not be a complete measure, but for example, I may have a harder time making meaningful trades right at the open... it's a psychological or emotional thing. In this case, I would need to shy away from making trades during this time... just me. Day trading I've found to be more of a psy/emotional rollercoaster than simply technical trading.

    Edit: I should point out as well, that this exercise is about a specific type of trade, so finding what time is more profitable for ME is essential.
    Last edited by cableghost; 05-02-2021 at 12:32 PM.

  26. #26
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range

    Quote Originally Posted by JohnTopley View Post
    Does post#16 give results you want; number and % of trades in given time periods??
    It's close, but the total percentage is off.

  27. #27
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range and the average time within each

    I have re-worded my opening post to maybe help better define what it is I'm looking for.

    a) The percentage of trades made within each time range
    b) The average time of each trade made within each time range

  28. #28
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Find the percentage a cell is in a time range

    Total % is 100% (G10) so what is OFF.

    And your explanation actual agrees with mine: you chose an arbitrary time of 9:30-9:50 so you count the trades in this period which is exactly what my answer gave. It is not rocket science to look at such figures to determine peaks/troughs in trading (or any other) patterns. The same logic applies to when customers go to a supermarket !!!

    You could get very granular at look at the TYPE of trades during any period: slice the data in many ways.

  29. #29
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Find the percentage a cell is in a time range

    The average time of each trade made within each time range
    A trade is made at 9:35 and another at 9:54: what is a meaningful average ==> 9:45 ??? ... so what?

  30. #30
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range and the average time within each

    Quote Originally Posted by JohnTopley View Post
    Total % is 100% (G10) so what is OFF.
    When I add up these cells (Col G of the RESULTS sheet), the total is 106 (14+58+14+11+8+1)

  31. #31
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range

    Quote Originally Posted by JohnTopley View Post
    A trade is made at 9:35 and another at 9:54: what is a meaningful average ==> 9:45 ??? ... so what?
    John- I'm telling you, taking a trade @ 9:30 vs. 9:45 is completely different. LOGICALLY, it may not mean anything, but I may not be as successful with this type of trade at 9:30. I know what I'm after; please focus on that, rather than continuing to question why I need it.

  32. #32
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the percentage a cell is in a time range and the average time within each

    You've missed a time range out. See the updated examples attached.
    Attached Files Attached Files

  33. #33
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the percentage a cell is in a time range and the average time within each

    How about adding these up ...

    PHP Code: 
    12.3893805310%
    6.1946902655%
    51.3274336283%
    12.3893805310%
    9.7345132743%
    7.0796460177%
    0.8849557522

  34. #34
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Find the percentage a cell is in a time range and the average time within each

    The 106 is the number of trades: the % are in next column. I give up!

  35. #35
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range and the average time within each

    Quote Originally Posted by TMS View Post
    You've missed a time range out. See the updated examples attached.
    Excellent, thank you!

    Now, how can I find the average time within each range? @kvsrinivasamurthy provided a formula, but I'm not sure how to implement it for each of the ranges.

  36. #36
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range and the average time within each

    Quote Originally Posted by JohnTopley View Post
    The 106 is the number of trades: the % are in next column. I give up!
    Attitude, John... You actually did indicate G10. Which cells were you indicating in adding up to go into G10? If you add the cells about G10, it comes out to be 106. @TMS has provided an update that gives a total of 100% and part of what I'm looking for. I'm now looking for what you don't think I need... the average time within each time range.

  37. #37
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the percentage a cell is in a time range and the average time within each

    And the number of trades is out by 7 because of the missing time range. Actually, probably just 6 bearing in mind my test entry at the end
    Attached Files Attached Files

  38. #38
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the percentage a cell is in a time range and the average time within each

    Now, how can I find the average time within each range? @kvsrinivasamurthy provided a formula, but I'm not sure how to implement it for each of the ranges.
    Have you actually looked at the examples in the files I've posted? Not only do they show the formulae for each calculation, they're colour coded so you can see which formula is in each cell.

    The formulae I have posted give you EVERYTHING you have asked for. Just look at it.

  39. #39
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range and the average time within each

    Quote Originally Posted by TMS View Post
    And the number of trades is out by 7 because of the missing time range. Actually, probably just 6 bearing in mind my test entry at the end
    What's interesting is that I actually, initially, wrote the wrong time range. It should have been 6:00-9:29. However, it would be interesting to see the specific data for the last 1/2 hr of the PM, so thank you for that.

  40. #40
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range and the average time within each

    Quote Originally Posted by TMS View Post
    Have you actually looked at the examples in the files I've posted? Not only do they show the formulae for each calculation, they're colour coded so you can see which formula is in each cell.

    The formulae I have posted give you EVERYTHING you have asked for. Just look at it.
    Pardon if I'm overlooking something here... I see Col J, ie. H4/I4, but its not giving me a time. I see the formulas give me the total time and the number of entries, but how do I get the ave time for each range?

  41. #41
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,202

    Re: Find the percentage a cell is in a time range and the average time within each

    Which cells were you indicating in adding up to go into G10? I
    formula in G10 ?

    See column H for Average Times
    Attached Files Attached Files

  42. #42
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the percentage a cell is in a time range and the average time within each

    Let's try again to spell it out ...
    Attached Files Attached Files

  43. #43
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the percentage a cell is in a time range and the average time within each

    Note that any trades before 06:00 or after 16:00 will not be included in any of the calculations.

  44. #44
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range and the average time within each

    Quote Originally Posted by TMS View Post
    Let's try again to spell it out ...
    Ah, sorry you had to spell it out for me Thanks again!

    Edit: Here's what I ended up with...
    Attached Files Attached Files
    Last edited by cableghost; 05-02-2021 at 04:50 PM.

  45. #45
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the percentage a cell is in a time range and the average time within each

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  46. #46
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the percentage a cell is in a time range and the average time within each

    Thanks for the rep.

    Glad you have a solution.

    I would feel more comfortable if B4 on the RESULTS sheet had the formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied down, so that there is a direct link with the TIMES sheet and the calculations performed in relation to the times. Otherwise, there is a risk you could change the ranges on the TIMES sheet and not update the RESULTS sheet.

    Just my thoughts ... but, personally, I’d use the approach on RESULTS (v2) and avoid introducing a separate TIMES sheet. But, your workbook, your process(es), your choice.

  47. #47
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range and the average time within each

    What if I wanted to exclude something from these formulas, ie. 'FBO'

    Please Login or Register  to view this content.
    This is what I used for another RESULTS entry...

    Please Login or Register  to view this content.

  48. #48
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range and the average time within each

    Quote Originally Posted by JohnTopley View Post
    formula in G10 ?
    Look at one of your posts to me... You said to look at G10, it's 100%. You do realize, you did not contribute anything to this thread... maybe next time.

  49. #49
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the percentage a cell is in a time range and the average time within each

    This would be my preferred approach
    Attached Files Attached Files

  50. #50
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the percentage a cell is in a time range and the average time within each

    You'd include DATA!J:J,"<>FBO" as another condition in the AVERAGEIFS, SUMIFS and COUNTIFS.

  51. #51
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the percentage a cell is in a time range and the average time within each

    I think John was referring to the formula in G10 (at the time) containing
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    hence the values going into the cell/formula were those in cells G4:G9 which added up to 100%

  52. #52
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the percentage a cell is in a time range and the average time within each

    Re: JT
    You do realize, you did not contribute anything to this thread... maybe next time.
    I have to be honest and say that I don't think you contributed very much that was helpful to this thread. John was, at least, trying to help you, a stranger, despite you questioning his attitude.

  53. #53
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range and the average time within each

    Quote Originally Posted by TMS View Post
    You'd include DATA!J:J,"<>FBO" as another condition in the AVERAGEIFS, SUMIFS and COUNTIFS.
    Thank you; this worked, except for the COUNTIFS formula. I attempted adding the below in several places.

    Please Login or Register  to view this content.

  54. #54
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the percentage a cell is in a time range and the average time within each

    Untested, but I would have thought this should work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  55. #55
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range and the average time within each

    Quote Originally Posted by TMS View Post
    Untested, but I would have thought this should work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    That's actually what I initially tried, but it worked this time around... Thanks.

  56. #56
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Find the percentage a cell is in a time range and the average time within each

    That's actually what I initially tried, but it worked this time around
    So, maybe you didn't ...

  57. #57
    Forum Contributor
    Join Date
    10-15-2012
    Location
    Dallas, TX
    MS-Off Ver
    2019
    Posts
    167

    Re: Find the percentage a cell is in a time range and the average time within each

    Quote Originally Posted by TMS View Post
    Re: JT

    I have to be honest and say that I don't think you contributed very much that was helpful to this thread. John was, at least, trying to help you, a stranger, despite you questioning his attitude.
    Bull. His initial approach was to question what I wanted and why. A non-trader telling me what I should be looking for? How is that trying to help? I get it, JT is a long-time contributor, but rebutting the very thing I'm looking for is not 'contribution'.

    Edit: You'll notice that I provided a lengthy explanation to JT. He questioned me again and I ignored it. He then brought it up once more, so yeah, bull on contribution.
    Last edited by cableghost; 05-02-2021 at 07:13 PM.

+ 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] Average if values in adjacent columns is >0 AND adjust the average range each time
    By ew17 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-17-2020, 12:56 PM
  2. Replies: 1
    Last Post: 01-12-2019, 03:36 PM
  3. to find average with multiple avg range list ( more then 1 avg range)
    By rishikrsaw in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-25-2014, 03:14 PM
  4. Average values if the associated time of occurence falls within a certain time range
    By boarderbrent91 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-02-2014, 01:49 PM
  5. [SOLVED] average time based on clock time range
    By xrayexceller in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 07-23-2013, 06:40 PM
  6. Average of time range
    By DexterG in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-10-2012, 08:20 AM
  7. Excel find out the average wait time
    By botle in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-13-2009, 10:03 PM

Tags for this Thread

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