+ Reply to Thread
Results 1 to 7 of 7

Average time for each individual range count.

  1. #1
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    MS 365
    Posts
    515

    Average time for each individual range count.

    Hello all,

    I am wanting to get the macro I have in this sheet working.
    The results I have in col in col G are averaging the times in col AM for each individual race.
    I have resulted the first five races.

    Col F counts how many there are for each race, col N is each different race. Cols B and D are dates and different tracks, there can be 3 x meetings on any given date.
    Time format must remain the same. Otherwise, I cannot use the data if changed. 00:00.0

    Thanks.
    Attached Files Attached Files
    I am grateful for all answers to my questions .
    Also i give a reputation even if not answered .

  2. #2
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Average time for each individual range count.

    Using formula, G2=AVERAGEIFS($AM$2:$AM$141,$B$2:$B$141,B2,$N$2:$N$141,N2), copy down and format the cells as mm:ss."00".

  3. #3
    Registered User
    Join Date
    10-16-2023
    Location
    Poland
    MS-Off Ver
    Excel 2019 32bit WIN10
    Posts
    99

    Re: Average time for each individual range count.

    Check this:
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    MS 365
    Posts
    515

    Re: Average time for each individual range count.

    Hi, thanks for results.

    My times contain the letter T, which means there is no time. I did not supply this data as a whole race, but now see it as a problem. Sorry for that.
    Tajan,s macro works but doesn’t recognize if a whole race has the letter T as in cells AM9:AM16. I result this 00:00.0 . So, the macro stops every time when it encounters this.

    I have seen when I have two or more meetings on the same date josephteh function is treating the one date as one meeting.
    I changed the date to 8/01/2023 as an example.

    Your macro and function are in version 2 sheet. You can see where things stop, and times are now incorrect.

    I think the two fixes are to recognize letter T and that there can be more than one meeting on any given day. Col D separates more than one meeting.

    Thanks.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2019
    Posts
    4,542

    Re: Average time for each individual range count.

    Add in one more criteria and enclose with IFERROR, =IFERROR(AVERAGEIFS($AM$2:$AM$141,$B$2:$B$141,B2,$N$2:$N$141,N2,$F$2:$F$141,F2),0)

  6. #6
    Registered User
    Join Date
    10-16-2023
    Location
    Poland
    MS-Off Ver
    Excel 2019 32bit WIN10
    Posts
    99

    Re: Average time for each individual range count.

    Change Macro to:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    12-12-2017
    Location
    New Zealand
    MS-Off Ver
    MS 365
    Posts
    515

    Re: Average time for each individual range count.

    That fixed the problems, all working well now. Joseph, I changed your extra criteria to match the track and that worked.
    Tajan, perfect fix.

    Thanks both, solved.

+ 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] Date range then percentages of time given to individual departments
    By michael.lennon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-25-2021, 12:23 AM
  2. Date range then percentages of time given to individual departments
    By michael.lennon in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-23-2021, 11:23 PM
  3. Replies: 0
    Last Post: 06-23-2021, 04:15 PM
  4. [SOLVED] Find the percentage a cell is in a time range and the average time within each
    By cableghost in forum Excel Formulas & Functions
    Replies: 56
    Last Post: 05-02-2021, 07:11 PM
  5. [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
  6. Displaying individual days from a time range
    By coryde87 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-21-2018, 01:43 PM
  7. 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

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