+ Reply to Thread
Results 1 to 4 of 4

How do you automatically transfer data from one spreadsheet to another spreadsheet?

  1. #1
    Registered User
    Join Date
    01-09-2012
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    54

    How do you automatically transfer data from one spreadsheet to another spreadsheet?

    Hi,

    I am trying to do some record keeping of nba stats. basically, what i would like to do in spreadsheet1 is have two columns where column one is "teams" and column two is "points". I would like to be able to transfer the data from column 2 into a second spreadsheet. However, the data from column two that is transferred to the second spreadsheet is dependent on what team i enter in column one. Ex. Every time that i enter "Minnesota" in column one, the corresponding point value in column two would be sent to a specific location in my second spreadsheet for my minnesota stats. then if i entered "miami" in column one, the corresponding points in the second column would be sent to the second spreadsheet where i want to record my miami stats. this would go on for all the teams in the nba. Note: there are 31 teams so whatever function that could do this would have to be able to recognize 31 team names. Hopefully i worded this in an understandable fashion

    Thanks,

    Dan

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: How do you automatically transfer data from one spreadsheet to another spreadshee

    You will have to do some work adding the 31 teams to the case statement, but how about...

    http://www.excelforum.com/excel-prog...ual-sheet.html
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    01-09-2012
    Location
    Minneapolis, Minnesota
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: How do you automatically transfer data from one spreadsheet to another spreadshee

    I think this is on the right path. However I was imagining something slightly different. I will try give a more specific example from a game last night and attach a template spreadsheet. Since I dont know how to do the code I will try explain where I see everything going in the template.

    Example game: Min was the away team and Was was the home team. Min scored 93 and Was scored 72. So in the worksheets I would like to input this data into the master worksheet. Min goes into cell A2, 93 goes into cell B2, Was goes into cell C2, and 72 goes into cell D2. Now what I would like to automatically happen as I do this is: 93 will transfer to cell C3 in my "Min" worksheet and also cell B3 in my "Was" worksheet. 72 will be sent to cell D3 in "Min" worksheet and also in cell A3 in "Was" worksheet. The reason for this is its assigning the correct stats to the home/away and points for/points against to the designated columns for their respective teams. My goal is to be able to input data into one worksheet and all the stats will be correctly assigned to each teams respective stat columns. Obviously my template is small scale (only two teams), and I will have to scale up to 31 teams once I understand how to write a macro for this.

    Thanks,

    Dan

    NBAstats.xlsx

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: How do you automatically transfer data from one spreadsheet to another spreadshee

    Sorry, been busy all day. Let's try this.

    In column A and C on the Master sheet you will find Data Validation. This is the best way to go as you can ensure the team names are entered the same everytime.

    Select a team on the master sheet for Home and Away and as soon as you enter a score in either column B or D the score is transferred.

    Give it a test and let me know if it is fitting your needs. Make sure you enable the macro's because behind the Master sheet is a Worksheet Change event.
    Attached Files Attached Files

+ 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