+ Reply to Thread
Results 1 to 7 of 7

Counting with a lot of criterias across multiple sheets

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    24

    Counting with a lot of criterias across multiple sheets

    Hi there

    I might as well start with stating the fact that I'm an Excel rookie, so I only know the most basic stuff, and what I could find (and understand...) on the internet. And I'm totally stuck on this one!

    I have a workbook, where I'm trying to do some statistics for football officials. It consists of multiple sheets:
    - The plan for which officials are assigned to which games
    - Data from games on flags thrown (or not thrown)
    - The sheet where I want to do the stats

    The plan looks like this:
    Plan.gif

    The game data looks like this:
    GameData.gif

    The different official's positions are called R, U, H, L, F, S and B.
    For every flag thrown in a game, the official can get different grades; CC, MC, NC, IC or NG.
    The gradings are in columns E and H in the game data sheet. (for example RC is R getting a CC grade, UN is U getting a NG grade and so on. The NG grade gets the letter "G" (HG for H getting a NG grade for example) as N is already used for NC.)

    My trouble is, that people are working different positions in different games. So when I want to count for example how many of the different grades KL has, I have to somehow cross check the data with the plan.

    Example:

    In game # 103040 KL is working the F position, but in game 103068 he is working the R position. When doing the stats for KL, I then have to first check in the plan what position he is working, before getting the grades in the data sheet. And I have no idea how I do that...

    I have already done the grades per position, as there was no need to cross check with the plan, but on this one I'm totally stuck.

    My plan was making a list like this:
    Stats.gif

    So I simply need to count the number of each grade for each official (the group they are listed under is their primary position, but everyone is working multiple positions during the season).

    Can someone help me? I can provide a copy of the document if needed, but I have to make some changes to it first, as I can't put people's grades online (although it's not likely that anyone involved are looking in here )

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Counting with a lot of criterias across multiple sheets

    First question is, is it possible to keep all your game data on one sheet with the addition of an extra column which records the game number on each row?

    If so It's highly likely this could be a trivial matter for analysis by a pivot table.

    Upload the workbook and manually add some projected results, telling us which are the result cells and which are data.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Counting with a lot of criterias across multiple sheets

    Thank you for your fast answer. I'm not entirely sure what you mean though, the last column in the data sheet (column I) already has the game # in each row.

    The data is imported from a web site, so the data sheet will be updates every week through the season. The website spits out a lot of data into an Excel sheet, and I remove the unneeded rows with a macro, and then copy/paste the data into the data sheet of the statistics document.

    I have attached the document as it is at the moment.

    ExcelForum_stats.xlsx

  4. #4
    Registered User
    Join Date
    04-18-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Counting with a lot of criterias across multiple sheets

    I just noticed that the document I uploaded is missing the projected results and the marking of which cells are result cells and which are data cells.... I attached a new document where the cells are colored and there is an explanation for each color. I hope it makes sense...

    ExcelForum_stats_new.xlsx

  5. #5
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Counting with a lot of criterias across multiple sheets

    In the attached file I have added a lot of helper columns to the data sheet. Column J matches the official's position to the person using the formula:
    Please Login or Register  to view this content.
    Column K matches the letter to the grade using the formula:
    Please Login or Register  to view this content.
    This pattern repeats through columns v and w. The formula for the results sheet is:
    Please Login or Register  to view this content.
    Copy of ExcelForum_stats_new.xlsx

    Let me know if you have any questions.

  6. #6
    Registered User
    Join Date
    04-18-2013
    Location
    Denmark
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Counting with a lot of criterias across multiple sheets

    This looks awesome! Thank you so much!

    I'm playing around with moving the helper columns to it's own sheet, so it will be easier for me when I have to update the data sheet during the season, and it seems it's still working even though I don't fully understand the Index command :-)

    I' am very very grateful for your help, and maybe I can learn something by studying the formulas :-) I understand the countifs formula, but I gotta study a bit on the index and match stuff - it seems it could be helpful in some other stuff I'm doing too :-)

    Again, thank you so much!

  7. #7
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Counting with a lot of criterias across multiple sheets

    You're welcome. Please use the thread tools above your first post to mark the thread as 'Solved'. Hope that you have a good day.

+ 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. Replies: 12
    Last Post: 02-10-2014, 11:59 AM
  2. Counting with multiple criterias across multiple sheets
    By k.m. in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-11-2013, 03:40 PM
  3. Replies: 0
    Last Post: 05-05-2013, 05:47 AM
  4. [SOLVED] Counting multiple items with multiple criteria from multiple sheets?
    By essee in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-23-2013, 01:56 AM
  5. INDEX & MATCH, 3 criterias, multiple sheets
    By Jaakkolo in forum Excel General
    Replies: 15
    Last Post: 07-04-2012, 02:16 AM
  6. Counting two criterias
    By jleung07 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-12-2012, 07:42 AM
  7. help please : counting iterations based on multiple criterias
    By ccoindy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-11-2007, 11:40 AM
  8. counting from columns using criterias
    By funkymonkUK in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-24-2007, 09:52 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