+ Reply to Thread
Results 1 to 4 of 4

Fill a cell in Column B based on the text in Column A using a table on sheet 2

  1. #1
    Registered User
    Join Date
    11-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Fill a cell in Column B based on the text in Column A using a table on sheet 2

    I have a table with employees and their team leaders on sheet two. I have a column with employees on sheet 1 that will have duplicates. I would like to fill the cell in column B with the employees team leaders name. I have attached a sample wookbook.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    10-29-2012
    Location
    Mojokerto,Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    554

    Re: Fill a cell in Column B based on the text in Column A using a table on sheet 2

    at sheet1 B2
    =INDEX(Sheet2!$A$1:$D$1,SUMPRODUCT((Sheet2!$A$2:$D$7=Sheet1!A2)*(COLUMN(Sheet2!$A$2:$D$7))))

    copy down

  3. #3
    Registered User
    Join Date
    11-22-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Fill a cell in Column B based on the text in Column A using a table on sheet 2

    AWESOME!!!! Thanks so much...

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Fill a cell in Column B based on the text in Column A using a table on sheet 2

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Fill cell with text based on dates and text in another table
    By triptich in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-22-2013, 04:13 PM
  2. [SOLVED] If cell value in one column matches text, fill cell value in different column on same row
    By zigojacko in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-17-2013, 05:21 AM
  3. [SOLVED] VBA fill in cells in a new column in table based on multiple criteria from other columns
    By HRA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-14-2013, 06:48 AM
  4. [SOLVED] copying specific certain column data based on cell/column value to another sheet
    By arctic7 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-09-2012, 03:38 PM
  5. Replies: 3
    Last Post: 05-27-2010, 10: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