+ Reply to Thread
Results 1 to 5 of 5

Autopopulate Cells

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    Tacoma, WA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Autopopulate Cells

    Hello all,
    After a bit of googling and searching these forums, I can't quite find an answer to what seems like a pretty simple problem.

    I have a list of around 20 companies that belong to either Group A, or Group B. These companies and their groups are listed in Column A (Company) and Column B (Group) on Worksheet B;

    Company Name........Company Group
    Name 1...................Group A
    Name 2...................Group A
    Name 3...................Group B
    Name 4...................Group A
    Name 5...................Group B
    etc..........................etc

    On Worksheet A, in Column A, company names (that match company names on Worksheet B) are manually entered. I would like Column B to populate with the company's group as defined on Worksheet B, Column B automatically. This is to speed up data entry, so the person entering each company doesn't have to remember, or look up that company's group (A or B).

    In short, if I enter "Name 3" in Column A, I would like Column B to automatically populate with the text "Group B" as defined on Worksheet B.

    I'm not quite sure where to begin. Company names will be added and removed from time to time, so ideally I would just update Worksheet B and those changes would be reflected on Worksheet A.

    Any help would be greatly appreciated.

    Thanks.

  2. #2
    Registered User
    Join Date
    10-31-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Autopopulate Cells

    Assuming cell A1 on Worksheet A has the manual data entry, place this formula in the cell where you want the company group to show:

    =INDEX('Worksheet B'!B:B,MATCH('Worksheet A'!A1,'Worksheet B'!A:A,0))
    Last edited by lychee; 12-04-2013 at 03:27 PM.

  3. #3
    Registered User
    Join Date
    12-03-2013
    Location
    Tacoma, WA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Autopopulate Cells

    Thanks lychee. Worksheet B looks like this;

    Company Name..........Group
    Company 1................A
    Company 2................A
    Company 3................B
    Company 4................A
    Company 5................B
    Company 6................B
    Company 7................B

    However, on Worksheet A, using that formula, my results are always "A", regardless of Company entered, like this;

    Company Name..........Group
    Company 1................A
    Company 6................A
    Company 7................A
    Company 1................A
    Company 7................A

    Maybe I didn't explain things properly in my OP? What I want to happen is if I type "Company 7" anywhere in Column A on Worksheet A, the result will be Column B being populated with "B" (the group defined on Worksheet B).

    Thanks.

  4. #4
    Registered User
    Join Date
    10-31-2012
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Autopopulate Cells

    The formula as it is written in the post will only work for the data in cell A1. If you have data in cell A2-A7, you have to fill down the formula, which would change it to:

    =INDEX('Worksheet B'!B:B,MATCH('Worksheet A'!A2,'Worksheet B'!A:A,0))
    =INDEX('Worksheet B'!B:B,MATCH('Worksheet A'!A3,'Worksheet B'!A:A,0))
    =INDEX('Worksheet B'!B:B,MATCH('Worksheet A'!A4,'Worksheet B'!A:A,0))
    and so on.

  5. #5
    Registered User
    Join Date
    12-03-2013
    Location
    Tacoma, WA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Autopopulate Cells

    Works perfectly. Thanks lychee.

+ 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. Autopopulate multiple cells based on one drop down menu
    By Vincent16 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2013, 04:08 PM
  2. Replies: 1
    Last Post: 09-02-2013, 06:54 PM
  3. Search for a value and autopopulate the next 2 cells.
    By Hawkdriver in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2013, 07:15 AM
  4. Replies: 0
    Last Post: 09-05-2011, 05:32 AM
  5. how to autopopulate cells based on values from other cells
    By marbie in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-28-2011, 05:31 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