+ Reply to Thread
Results 1 to 9 of 9

auto populate columns

  1. #1
    Registered User
    Join Date
    01-28-2021
    Location
    Wolverhampton, England
    MS-Off Ver
    MS Excel 2016
    Posts
    44

    auto populate columns

    Hi I have the following spreadsheet attached, I am wondering, is it possible to populate the Team column (column B) based on the Employee name (column A), if so, what is the best way of doing this?
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,826

    Re: auto populate columns

    Yes, as long as you have a lookup table somewhere - there isn't one in the workbook attached. INDEX MATCH or VLOOKUP will do it. If you need further help, please supply a sample workbook containing the lookup data.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: auto populate columns

    Probably a small table some place with the employees in one column and the teams in the column beside them, then a vlookup, something like =VLOOKUP(A2,$I$2:$J$10,2,FALSE) to return the values - assumes the lookup table is in cells I2 through J10, adjust as needed.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    01-28-2021
    Location
    Wolverhampton, England
    MS-Off Ver
    MS Excel 2016
    Posts
    44

    Re: auto populate columns using VBA

    Hi instead of there being a lookup table and using the v-lookup formula, is there a way to do it with just the current data that is available, reason why I don't want to use formulas is due to the size of the spreadsheet. What I have attached in this thread is just a sample sized spreadsheet. Could Tables be used?
    Last edited by Navee138; 02-19-2021 at 06:04 AM.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,826

    Re: auto populate columns

    What is the size of the spreadsheet it needs to work with (number of columns by number of rows)?

    No, you can't do what you want, at least not without VBA: a column's cells can contain either data or a formula, but not both.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,826

    Re: auto populate columns

    I have moved this thread to the VBA section. You might also wish to update the thread title with a bit more detail.

  7. #7
    Registered User
    Join Date
    01-28-2021
    Location
    Wolverhampton, England
    MS-Off Ver
    MS Excel 2016
    Posts
    44

    Re: auto populate columns

    Hi can you provide link of this thread? I cannot seem to find it in the VBA section

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,826

    Re: auto populate columns

    You are in it. As I explained (in both threads concerned), the thread has been moved: that means that it has moved, lock, stock and barrel. If you are reading this, you have found it.

  9. #9
    Registered User
    Join Date
    01-28-2021
    Location
    Wolverhampton, England
    MS-Off Ver
    MS Excel 2016
    Posts
    44

    Re: auto populate columns

    Hi, just thought I would try and give a bit more detail into what I am trying to achieve. If in cell A14 I enter 'RJ', I would like cell B14 to automatically populate to whatever has been entered in the rows above where the column A contains 'RJ'. For example, if 'Solution Delivery' is in column B for 'RJ', then when RJ is entered again, 'Solution Delivery' is automatically populated in column B.

+ 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 Populate Columns for data in another Tab
    By justinmt7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-07-2018, 11:03 AM
  2. [SOLVED] Assistance will using keywords to auto populate 3 columns. HELP :)
    By AceForSale in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-11-2016, 09:52 AM
  3. Using four columns to auto populate in a 5th column
    By Hubbs in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 02-10-2016, 05:39 AM
  4. [SOLVED] Macro to Auto-populate cells and columns based off of a Number
    By Cansa in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-06-2013, 05:59 PM
  5. Auto populate a third cell, based on data from two columns
    By 12ogboy78 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-25-2013, 02:21 AM
  6. How to auto-populate cells in other columns with the value in a cell
    By Excelrookie_1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-17-2012, 08:03 AM
  7. Replies: 3
    Last Post: 02-28-2012, 11:54 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