+ Reply to Thread
Results 1 to 8 of 8

Need Solution With Fantasy Baseball Spreadsheet

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    20

    Need Solution With Fantasy Baseball Spreadsheet

    This should be a batting practice fastball right down the middle for any Excel guru.

    What I am looking to have done is simple in concept but has been giving me fits. Let me just use one example of what I need done.

    Let's say in Sheet 1 and in cell B4 I have the player name "Justin Upton". In cell C4 of Sheet 1 I want to pull data from Sheet 2 referring to the text ("Justin Upton") in cell B4. When it finds the cell that reads "Justin Upton" in Sheet 2, I want to then pull the text from the cell 3 below and 3 to the right of it.

    So if "Justin Upton" was located in cell A1 of Sheet 2, then I want cell C4 of Sheet 1 to pull the text from cell D4 of Sheet 2. Make sense?

    I think this involves the Index() and Offset() commands, but I still a casual Excel user and can't put it together. Hopefully this problem is clear and can easily be solved.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Need Solution With Fantasy Baseball Spreadsheet

    This isn't going to be hard but we need to get your data layout exactly right first. What are the possible locations in Sheet 2 where the names can be located? Is it just one column?

    It would be ideal if you attached your file.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    05-14-2013
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Need Solution With Fantasy Baseball Spreadsheet

    Sheet 1.jpg
    Sheet 2.jpg

    I want to pull the data from the marked cell on the bottom page (Sheet 2) into the marked cell on the top page (Sheet 1).

    Basically the formula in cell C819 in Sheet 1 needs to refer to the player name in cell B819 and then locate that same name on Sheet 2.At that point it needs to find the location of the cell with the relevant statistic. In this case, the location would be down 3 and over to the right 3, in cell D665 of Sheet 2.

    Hope this clears things up.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Need Solution With Fantasy Baseball Spreadsheet

    Perhaps you missed the "attached your file" part?

    Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff)

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    05-14-2013
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Need Solution With Fantasy Baseball Spreadsheet

    Gotcha. Here is a brief workbook sample I created that will make it easier to look over and edit, in case anyone wants to step up to the plate and solve this.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    05-14-2013
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Need Solution With Fantasy Baseball Spreadsheet

    Anyone? Would appreciate some help here.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Need Solution With Fantasy Baseball Spreadsheet

    There are a few ways to tackle this, this is how I did it.

    1. Give the player table a range name - using that players name as the name for the range. You will need to replace the space with an underscore, named ranges cant use spaces
    So that will have the named range JUSTIN_UPTON and the range will be A2:V14
    2. Use this, copied across...
    =INDEX(INDIRECT(SUBSTITUTE($B6," ","_")),MATCH($A$1,Sheet2!$B$2:$B$14,0),MATCH(C$2,Sheet2!$A$2:$V$2,0))

    Once you have the other tables and range names in place, you should be able to copy it down

  8. #8
    Registered User
    Join Date
    05-14-2013
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Need Solution With Fantasy Baseball Spreadsheet

    Thanks for taking the time to help me with this! I'll let you know if I run into any other problems.

+ 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. [SOLVED] Fantasy Baseball Transactions
    By dmarzo1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2013, 07:27 AM
  2. Replies: 0
    Last Post: 02-17-2013, 04:01 PM
  3. creating Fantasy Baseball Spreadsheet
    By deadmanramsey in forum Excel General
    Replies: 14
    Last Post: 03-23-2012, 10:47 PM
  4. Formula for Fantasy Baseball
    By lycomingwarrior in forum Excel General
    Replies: 1
    Last Post: 11-12-2008, 05:17 PM
  5. Fantasy Baseball Spreadsheet
    By jed_vii in forum Excel General
    Replies: 6
    Last Post: 05-22-2008, 12:03 PM

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