+ Reply to Thread
Results 1 to 8 of 8

Team Inventory - If player is inactive how to not count their data

  1. #1
    Registered User
    Join Date
    05-20-2013
    Location
    Victoria BC, Canada
    MS-Off Ver
    OFFICE 365
    Posts
    15

    Team Inventory - If player is inactive how to not count their data

    Try to explain my first post best I can.

    I have one main page "Player Info" where I grab the data from an online form players fill out. It has more than shown but you can get the idea.

    - What I need help in is if one player is "N" (inactive due to sent to lower division, player is signed for next year, etc) I don't want the tabs "GEAR" or "APPAREL" to take their info and count that I need to get a set of 14" gloves for them or apparel for them. So what I am trying to say Player 1 has selected Large, Workout shirt, shorts, tracksuit and polo. The way I have the formulas now it will add his responses to the "How many players in this size" column. I need it to ignore his responses if in "ACTIVE" column he is marked "N" which means he doesn't need the gear this season.

    - Sticks are a whole new beast and other tabs extract info from PLAYER INFO columns e:H and I would still like that to happen.

    In option 1 I put check boxes but I cannot program so would prefer formulas to VBA.

    File attached for reference.

    I do have a couple of macros in my file. Thanks in advance if you are able to help.
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Team Inventory - If player is inactive how to not count their data

    Hey GolfNut,

    I see that you are already using CountIfs but if you unpivoted your data you could do a Pivot Table with it and it might do what you want. See the attached.
    Excel team inactive.xlsm
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

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

    Re: Team Inventory - If player is inactive how to not count their data

    In E2 Of Gear Sheet and in Apparel Sheet then copied down

    =SUMPRODUCT((Table4[ACTIVE]="Y")*(INDEX(Table4[['#]:[POLO SHIRT]],,MATCH($A2,Table4[[#Headers],['#]:[POLO SHIRT]],0))=$B2))

    Pl see file
    Note: Column A should exactly match with the header of table in Player info sheet
    Note: Column B should exactly match with the corresponding column of table in Player info sheet
    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.

  4. #4
    Registered User
    Join Date
    05-20-2013
    Location
    Victoria BC, Canada
    MS-Off Ver
    OFFICE 365
    Posts
    15

    Re: Team Inventory - If player is inactive how to not count their data

    Thanks all for taking the time to help me out.

    Sorry I think I lacked giving you what I am looking for. I am just looking for the sum in column C so I know how many players will need each piece of gear. I was hoping something like this would work but it gives #SPILL

    =IF('PLAYER INFO'!A13:A19,"Y")*COUNTIFS('PLAYERINFO'!J:J,"13""") Just gives me a #SPILL. Everything else is manual input as maybe coaches need a pair of gloves so I need to manually input for those things

    Appreciate your time..J
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-20-2013
    Location
    Victoria BC, Canada
    MS-Off Ver
    OFFICE 365
    Posts
    15

    Re: Team Inventory - If player is inactive how to not count their data

    Well I figured out how to only count "Y" (active players in the gear count) by using this code. Highlighted in pink in the file.

    =COUNTIFS('Player info'!$J$13:$J$18,"13""",'Player info'!$A$13:$A$18,"=Y")

    Now my issue is the textjoin I am now using as I like it better than transpose is showing every player's name in that gear (gloves in sample) even if they are inactive in column A. Would anyone know how to fix that formula so only names show up in textjoin that are "Y" active in column A?

    Appreciate your help...J
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Team Inventory - If player is inactive how to not count their data

    Try this in cell M2:
    =TEXTJOIN(", ",TRUE,FILTER(Table4[PLAYER],(Table4[GLOVES]=B2)*(Table4[ACTIVE]="Y"),"No one in this GLOVE"))

  7. #7
    Registered User
    Join Date
    05-20-2013
    Location
    Victoria BC, Canada
    MS-Off Ver
    OFFICE 365
    Posts
    15

    Re: Team Inventory - If player is inactive how to not count their data

    You are brilliaint Greg. Sure appreciate your reply. I got it going on my larger team excel sheet after the sample sheet from your formula. This is going to be so helpful.

    Thanks again. Stay safe in Georgia Greg. John

  8. #8
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Team Inventory - If player is inactive how to not count their data

    You're welcome. Glad it worked for you, eh. :-)

+ 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. Rotating the team players as needed on player avaliablity
    By Juttskt in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 07-14-2019, 02:36 PM
  2. Replies: 2
    Last Post: 05-25-2019, 12:03 PM
  3. Top value with two criteria? (team and player from large list)
    By behedwin in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-19-2019, 07:03 AM
  4. Player rotation for football team
    By steveuk76 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-12-2018, 12:52 AM
  5. Maximise player score but limit team cost
    By clacheson1 in forum Excel General
    Replies: 7
    Last Post: 07-24-2018, 07:20 AM
  6. Replies: 6
    Last Post: 12-06-2017, 04:40 PM
  7. random team making from database of player and ratings
    By wydim in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-10-2016, 09:35 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