+ Reply to Thread
Results 1 to 6 of 6

Changing formula based on player's name

  1. #1
    Registered User
    Join Date
    03-02-2017
    Location
    Lubbock, Texas
    MS-Off Ver
    2.0
    Posts
    8

    Question Changing formula based on player's name

    I recently created a small database full of NFL players that is split into different positions (linebackers, cornerbacks, quarterbacks, etc.). I also have a spreadsheet in it dedicated to finding a best comparable player at their specific position. In this sheet, there is a list of players at that position, a drop-down list of player names and a formula that refers back to the positional sheets, searches through the players (using different metrics like height, weight, arm length, 40 yard dash and college production) and eliminates less comparable players until a significantly narrowed down list of players remains. Any blank spaces in the first column just means that that particular player didn't fit a particular threshold, so they were eliminated

    BestComparable.png
    BestComparable2.png

    What I'm having trouble with is when I'm done applying that formula to the first player on the drop-down list and then select a different player's name, the results come up as FALSE.

    BestComparable3.png

    Is there any way I'd be able to have it automatically apply the same formula to the player selected based on their name? Any suggestions would be greatly appreciated!

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Changing formula based on player's name

    (How to) Upload a Workbook directly to the Forum
    (please do not post pictures or links to worksheets)
    • Click Advanced next to Quick Post button at the bottom right of the editor box.
    • Scroll down until you see "Manage Attachments",
    • Click the "Choose" button at the upper left (upload from your computer).
    • Select your file, click "open", click "upload"
    • Once the upload is completed the file name will appear below the input boxes in this window.
    • Close the Attachment Manager window.
    • Click "Submit Reply"
    Note: Please do not attach password protected workbooks/worksheets
    Ensure to disable any Workbook Open/Autorun macros before attaching!
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    03-02-2017
    Location
    Lubbock, Texas
    MS-Off Ver
    2.0
    Posts
    8

    Re: Changing formula based on player's name

    Here is the workbook. If anyone could help me figure this out, I'd really appreciate it.
    Attached Files Attached Files

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

    Re: Changing formula based on player's name

    Hello AK20 and Welcome to Excel Forum.
    It seems to me that the comparisons are supposed to change as the name in cell A1 changes. The existing formula doesn't allow for that as all stat comparisons are locked to those of Richard Sherman (CB! row 2) as in: ...IF(CBs!F2>(CBs!$F$2+2),"N/A"...
    It would seem that in fact all the comparisons should be to the CB whose name appears in cell A1 as in: ...IF(CBs!F2<INDEX(CBs!F$2:F$484,MATCH(A$1,CBs!B$2:B$484,0))-2,"N/A"...
    In the attached file the formula that populates column A of the CB Comparison sheet has been modified so that all comparisons are to the stats of the CB whose name is in cell A1.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    03-02-2017
    Location
    Lubbock, Texas
    MS-Off Ver
    2.0
    Posts
    8

    Re: Changing formula based on player's name

    Thank you very much, JeteMc!!!! I've been trying to figure this out for over a week now and it was really starting to annoy me (so much so that I searched for assistance on at least five different websites), but thankfully your edit works perfectly and gave me exactly what I was looking for! Although it's not enough to express my gratitude for your assistance, I just want to thank you again!

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

    Re: Changing formula based on player's name

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools drop down in the ribbon above your first post. I imagine that the other websites would appreciate your letting their contributors know that the question has been answered as well.
    I hope that you have a blessed 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: 14
    Last Post: 08-15-2020, 01:01 PM
  2. Replies: 8
    Last Post: 02-01-2018, 08:32 PM
  3. [SOLVED] Combine two column using formula and based on player name
    By plan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-19-2014, 09:35 AM
  4. [SOLVED] formula to get the name of the next player with the same score
    By aydaria in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2012, 03:45 AM
  5. Replies: 6
    Last Post: 02-25-2009, 02:12 AM
  6. [SOLVED] Media Player versus Windows Media Player
    By teepee in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-15-2005, 02:05 PM
  7. Media Player versus Windows Media Player
    By teepee in forum Excel General
    Replies: 1
    Last Post: 10-13-2005, 10:05 PM

Tags for this Thread

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