+ Reply to Thread
Results 1 to 6 of 6

Getting data from table into smaller tables on a seperate sheet

  1. #1
    Registered User
    Join Date
    08-26-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Getting data from table into smaller tables on a seperate sheet

    Hi, I was hoping someone could help me with my spreadsheet. I would like to have a "database" like sheet, in which I can easily add new or delete existing players. From that, I would have a second sheet which would show the player information in each position. So in sheet 2 the first table will have all the ST, table 2 all the AM L etc. I would also like for each table to also add the players that can play in that position under Pos 2. I have uploaded it with 2 players as an example of what I mean.

    Any help would be majorly appreciated, been stuck on this for a while and can't seem to get anything to work right.
    Attached Files Attached Files
    Last edited by FootyMan; 08-26-2013 at 07:54 PM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Getting data from table into smaller tables on a seperate sheet

    Add a simple key to the DB and it makes a lookup easier.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    08-26-2013
    Location
    Birmingham, England
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Getting data from table into smaller tables on a seperate sheet

    Wow, that's great. Do you mind explaining what you did, just so I know for next time/building on it etc?

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Getting data from table into smaller tables on a seperate sheet

    Column A of the Database sheet has a "count" formula in it that counts how many time the value in F on that row has appeared from the top down through that row. It creates a "key" numbering system that is unique to each item. the first time DM appears, it keys that as DM-1. The second time it appears, it keys it as DM-2. A unique key makes finding specific rows easy with lookup formulas.

    Sheet1 in C2 we COUNT how many times the value in B2 appears on the database sheet in column F, so we know what the maximum number of matches we can display is.


    In sheet1 A4 is another "key" formula that will display ST-1 if there is at least 1 in cell C2. In A5 it shows ST-2 if there is at least a 2 in C2, etc.

    Now the rest of that first table is a simple INDEX/MATCH formula that brings over data from the same row that matches the value in column A.

    Once the first section is complete, we copy I all down to the second section, then edit the first row formulas to start at 1 again.

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Getting data from table into smaller tables on a seperate sheet

    Here is my attempt using a helper column which is a serial number which is used in INDEX AND MATCH.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Getting data from table into smaller tables on a seperate sheet

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Creating a Master table from several smaller tables
    By brharrii in forum Excel General
    Replies: 14
    Last Post: 07-19-2013, 10:19 AM
  2. refering data from pivot tables to a table on a different sheet.
    By Tal72 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 01-21-2013, 03:42 PM
  3. [SOLVED] geting data from a table on a seperate sheet
    By Joe White in forum Excel General
    Replies: 8
    Last Post: 05-06-2012, 01:32 PM
  4. Macro - Create smaller word tables from master excel table
    By VBA_n00b in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2011, 10:12 PM
  5. Macro that will seperate a workbook into smaller ones
    By alogoc in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2009, 04:57 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