+ Reply to Thread
Results 1 to 6 of 6

Possible COUNTIF solution

  1. #1
    Forum Contributor
    Join Date
    03-30-2020
    Location
    Wales, UK
    MS-Off Ver
    365 (Mac)
    Posts
    191

    Possible COUNTIF solution

    Hi,

    I wonder if anyone might be able to help with some formulas, please. I have an existing table (columns A & B) that work perfectly, counting how many runs I have completed at each different parkrun venue. However, I would now like to some extra columns (C-G), but am not sure of how I calculate them. At the moment I have inserted the formulas that calculate what I want, but for all events, whereas I want them to calculate for the relevant event in that row.

    So, what I essentially want to do is to keep the same calculation for each of the C-G columns, but with something added into the formula so that it is calculated only for that particular row's event.

    At present, I have the following in columns C-G, which calculate correctly, but for all events:

    - In A3: =IFERROR(UNIQUE(FILTER('All Completed Runs'!C3:C2002,'All Completed Runs'!E3:E2002<>"")),"")
    - In B3: =IF(A3="","",COUNTIF('All Completed Runs'!C:C,A3#))
    - In C3: =IF(A3="","",OFFSET(INDEX('All Completed Runs'!E3:E2002,MATCH(MAX('All Completed Runs'!E3:E2002),'All Completed Runs'!E3:E2002,FALSE)),0,21))
    - In D3: =IF(A3="","",IFERROR(TEXT(SMALL('All Completed Runs'!Z3:Z2002,COUNTIF('All Completed Runs'!Z3:Z2002,0)+1),"HH:MM:SS"),""))
    - In E3: =IF(A3="","",AVERAGE('All Completed Runs'!Z3:Z2002))
    - In F3: =IF(A3="","",MAX('All Completed Runs'!Z3:Z2002))
    - In G3: =IF(A3="","",IFERROR(MODE('All Completed Runs'!Z3:Z2002),"N/A - None / Multiple"))

    Is it something really simple like just adding in a COUNTIF somewhere in each formula? I have tried a a few things, but without success.

    Thanks in advance!

    I have attached a link to the file via Google Drive:

    https://drive.google.com/file/d/1-ud...ew?usp=sharing

    Screenshot 2020-08-07 at 10.47.46.jpg

    Also posted on MR. EXCEL: https://www.mrexcel.com/board/thread...ution.1142320/
    Last edited by ollyhughes1982; 08-07-2020 at 06:51 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Possible COUNTIF solution

    Please post a sample sheet on the board ( see yellow banner)

  3. #3
    Forum Contributor
    Join Date
    03-30-2020
    Location
    Wales, UK
    MS-Off Ver
    365 (Mac)
    Posts
    191
    Quote Originally Posted by Pepe Le Mokko View Post
    Please post a sample sheet on the board ( see yellow banner)
    I would, but my spreadsheet is over 30mb with many interconnected worksheets, so not sure how I could really do this. I will try

  4. #4
    Forum Contributor
    Join Date
    03-30-2020
    Location
    Wales, UK
    MS-Off Ver
    365 (Mac)
    Posts
    191

    Re: Possible COUNTIF solution

    The smallest I have been able to get the file down to is 5.6mb and it still won't let me upload that.

    Link to the smaller file is here: https://drive.google.com/open?id=1R8...QgoD9boY1I-p6G

  5. #5
    Forum Contributor
    Join Date
    03-30-2020
    Location
    Wales, UK
    MS-Off Ver
    365 (Mac)
    Posts
    191

    Re: Possible COUNTIF solution

    Bit of explanation as to the cells:
    • C3: This should provide the time for the last time I completed the event in column A
    • D3: This should provide the fastest (lowest) time out of all instances of the event in column A
    • E3: This should provide the average (mean) time for all instances of the event in column A
    • F3: This should provide the slowest (highest) time out of all instances of the event in column A
    • G3: This should provide the most occurring (mode) time for the event in column A, or enter "N/A - None / Multiple" if this doesn't apply

    Hopefully this explanation helps a bit more.

  6. #6
    Forum Contributor
    Join Date
    03-30-2020
    Location
    Wales, UK
    MS-Off Ver
    365 (Mac)
    Posts
    191

    Re: Possible COUNTIF solution

    This is now solved; using MINIF, AVERAGEIF and MODE with nested IF. Thanks

+ 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. Possible to use SUMIF and COUNTIF together? Or other solution?
    By MechaJubei in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 08-08-2018, 06:36 AM
  2. Still looking for solution w/o helper: Countif + large
    By andrewwglenn in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-02-2015, 02:22 AM
  3. Countif Solution Needed
    By khangmg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2012, 04:55 PM
  4. COUNTIF? Or a better solution?
    By crevalle in forum Excel General
    Replies: 5
    Last Post: 08-18-2011, 02:02 PM
  5. CountIF and CountA Solution
    By Khanh Nguyen in forum Excel General
    Replies: 4
    Last Post: 05-02-2010, 02:08 PM
  6. COUNTIF solution
    By jaywerth in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-24-2007, 04:06 PM
  7. COUNTIF:workable solution
    By Simon Minder in forum Excel General
    Replies: 3
    Last Post: 06-13-2006, 04:20 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