+ Reply to Thread
Results 1 to 6 of 6

IF formula to assign players to teams based on age & weight

  1. #1
    Registered User
    Join Date
    02-21-2013
    Location
    chicago, il
    MS-Off Ver
    Excel 2003
    Posts
    3

    IF formula to assign players to teams based on age & weight

    Hello,
    My level of knowledge of excel is limited so please bare with me.
    I have about 2,000 players that I need to assign to their playing level (flag, widget, pw teal etc).
    I'm trying to have a formula that will place the player based on his age & weight to the correct level. In the end, I'm looking for the formula to come back with the players level.
    The first criteria used to determine which team they are placed on is their "age".
    I have gotten that far using IF formula.
    Then I get stuck......the 2nd criteria that trumps age is "weight"

    Below is the league reference chart that I am working from
    League Reference Chart
    Age / Wt / Level
    6 / / Flag (flag wt is unlimited)
    7 / / Flag
    8 / 80 / Widget
    9 / 80 / Widget
    10 / 90 / PW Teal
    11 / 100 / Pw Black
    12 / 110 / LW Teal
    13-14 / 120 / LW Black
    13-14 / 170 / Varsity

    Example 1: Johnny is age 11 and 98lbs = PW Black
    Based on the players age and weight he is placed on the PW Black team


    Example 2: Jimmy is age 11 and 130lbs = Varsity
    Based on the players age alone he qualifies for the PW Black team, however, because his weight exceeds the max allowed for that level (100lbs) he then gets bumped up to the level where is weight does not exceed the limit. In this example it would be Varisty.


    I have attached a sample worksheet of what I have so far with the IF formula. I could be way off base and maybe their is an easier formula.
    I could not figure out how to check the players weight in my formula....so it only contains the age.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: IF formula to assign players to teams based on age & weight

    Put this formula in C2:

    =IF(A2<8,"Flag",INDEX(C$18:C$24,MAX(MATCH(A2,A$18:A$24),MATCH(B2,B$18:B$24))))

    then copy down.

    Hope this helps.

    Pete

  3. #3
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: IF formula to assign players to teams based on age & weight

    Self deleted, re-read OP
    Last edited by dredwolf; 02-21-2013 at 08:21 PM.
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  4. #4
    Registered User
    Join Date
    02-21-2013
    Location
    chicago, il
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: IF formula to assign players to teams based on age & weight

    Pete,
    This is outstanding!
    Is there a way to account for players who's weights might be less than 80lbs?
    Right now if I enter a weight below 80lbs #N/A is displayed.

    For example
    Johnny is 11 years old and weighs 45lbs - his level would remain at PW Black
    Can the formula be adjusted to account for this?
    (FYI...Older players can not move down regardless of weight)

    Thanks.....this is a huge step in the right direction.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: IF formula to assign players to teams based on age & weight

    You need to put zero in cell B17, then you can amend the formula to this:

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


    so that the ranges start at row 17 instead of 18, then copy down, as in the attached file.

    Hope this helps.

    Pete
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-21-2013
    Location
    chicago, il
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: IF formula to assign players to teams based on age & weight

    Pete...
    Thank you so much, you have no idea how much you helped!
    Have a great weekend.
    Rob

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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