+ Reply to Thread
Results 1 to 8 of 8

Need help with auto population

  1. #1
    Registered User
    Join Date
    03-20-2021
    Location
    Cardiff
    MS-Off Ver
    2007
    Posts
    4

    Need help with auto population

    i have a table with lots of rows and and many columns pertaining to the primary key. I also have a blank table with the same headings. I want to be able to type in a primary key from table 1, and have the full row in table 2 filled out with the relevant data.
    this is for a school project so a quick reply would be very much appreciated.
    Thanks

    Column A is a list of unique names. The rest of the columns are attributes of the primary key in column A. (Location, Age, Gender etc.)
    i want to link the attributes to the primary key, so that when i type a unique name in the blank table, the relevant data from the source table gets automatically input in the correct cells.
    Attached Files Attached Files
    Last edited by the_swiss; 03-20-2021 at 05:00 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: Need help with auto population

    You could probably use INDEX/MATCH/MATCH.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    03-20-2021
    Location
    Cardiff
    MS-Off Ver
    2007
    Posts
    4

    Re: Need help with auto population

    consider me a new excel user. So, I dont really know what you mean by that

  4. #4
    Valued Forum Contributor
    Join Date
    04-24-2020
    Location
    Woodbridge, VA
    MS-Off Ver
    2016
    Posts
    434

    Re: Need help with auto population

    Can you attach yoru file?

  5. #5
    Registered User
    Join Date
    03-20-2021
    Location
    Cardiff
    MS-Off Ver
    2007
    Posts
    4

    Re: Need help with auto population

    attached

  6. #6
    Valued Forum Contributor
    Join Date
    04-24-2020
    Location
    Woodbridge, VA
    MS-Off Ver
    2016
    Posts
    434

    Re: Need help with auto population

    Thanks for attaching the file. But I do not see any unique names in Column A of any of the tabs in the workbook.
    Can you please clarify what exactly what columns you are looking at as reference and what you want on the other tabs?

  7. #7
    Registered User
    Join Date
    03-20-2021
    Location
    Cardiff
    MS-Off Ver
    2007
    Posts
    4

    Re: Need help with auto population

    Ignore the Pokedex sheet. I want to be able to type a pokemon name (the unique name, as no pokemon have the same same, except a select few which Ive altered to be unique) in column A of the Team sheet, and have its stats auto input into the rest of the table. The source sheet being Perdex.

  8. #8
    Valued Forum Contributor
    Join Date
    04-24-2020
    Location
    Woodbridge, VA
    MS-Off Ver
    2016
    Posts
    434

    Re: Need help with auto population

    So let me know what questions you have!!
    OK - you kept saying Column A, that's where I was confused, it is actually column B the Pokemon name.

    What I am doing is called a VLOOKUP formula. It looks at one value and finds that value on another sheet plus other info from that other sheet.

    So look on the Team tab, 1st entry under Type 1, line 2, you will see formula =VLOOKUP(B2,Perdex!$C$2:$S$699,9,FALSE). What it does is it looks at B2 on that tab, Team tab, and compares it to the Peredex tab and Columns C - S and then depending on the next number in the formula, in this case 9, it looks at that column, 9, starting and including Column C and puts that info there. The False in the formula means it is an exact match.

    Type 2 is 10 columns over so that is why the formula has a 10 in Column D, Ability I is 11 columns thus 11 in Column E, and so on. I stopped at Physical/Special wasn't sure what you were looking for there.

    When you copy the formula down, like in line 3, the B2 becomes B3, in line 4 it becomes B4, etc.

    Now your color codes have messed up from what you had because of the color you had in line 2 when I copied the formula down. You can use Conditional Formatting to automatically highlight Grass Green, or Fire Red, etc.


    Hope all this makes sense, if not please let me know!!
    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)

Similar Threads

  1. Auto cell population
    By Mcambi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-19-2018, 01:52 PM
  2. Help with Auto Population
    By heyeveryone123 in forum Excel - New Users/Basics
    Replies: 9
    Last Post: 12-01-2017, 04:35 PM
  3. Auto Population of cells
    By dermotdjt in forum Excel General
    Replies: 4
    Last Post: 04-25-2013, 05:23 AM
  4. Auto Population
    By JustinZ in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 10-26-2009, 09:29 AM
  5. Help :-( - Auto Population
    By Stacey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2006, 11:45 AM
  6. Conditional Auto-Population?
    By trigger in forum Excel General
    Replies: 0
    Last Post: 01-12-2006, 12:04 PM
  7. [SOLVED] Conditional Auto-Population
    By Woozy in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-11-2006, 03:30 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