+ Reply to Thread
Results 1 to 4 of 4

How to auto-populate values in a column based on a lookup table?

  1. #1
    Registered User
    Join Date
    02-03-2021
    Location
    NYC, USA
    MS-Off Ver
    2010
    Posts
    2

    Question How to auto-populate values in a column based on a lookup table?

    Hi there! I've looked at this a number of ways, trying INDEX / MATCH / VLOOKUP and more, and the only function which seemed like it might do what I need is XLOOKUP, which is not available in Excel 2010.

    I have attached a sample spreadsheet, but, in essence, what I am trying to do is have the values in one column auto-populate based on the text in another field in the same row. This formula would then be cut and pasted for each field in that column.

    In looking at my attached spreadsheet:

    Column A lists where I took a trip. This is the column which needs to be searched to determine which value should auto-populate in column B.

    Columns C and D are informational and irrelevant here.

    Columns F and G are my lookup table (F7:G10). The formula in Column B should look for each string in F7:F10 and, if it gets a positive return for an entry in column F, return the value from the same row in Column G.

    Does anyone know a way to achieve this in Excel 2010 please?

    Thanks in advance!
    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 (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,974

    Re: How to auto-populate values in a column based on a lookup table?

    Welcome to the forum.

    In B8 drag copied down:

    =IFERROR(LOOKUP(1000,SEARCH($F$7:$F$10,A8),$G$7:$G$10),"")
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    02-03-2021
    Location
    NYC, USA
    MS-Off Ver
    2010
    Posts
    2

    Re: How to auto-populate values in a column based on a lookup table?

    Quote Originally Posted by AliGW View Post
    Welcome to the forum.
    Thank you! And... wow! That's exactly what I was looking for! What does the IFERROR part do please?

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,974

    Re: How to auto-populate values in a column based on a lookup table?

    It replaces any errors returned (if a match can't be found) with a blank.

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

+ 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 Cells In A Table, Based On Month Value
    By ExcelExxpert in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-06-2020, 07:49 PM
  2. [SOLVED] Auto populate a column based on data in a seperate table
    By Issy.87 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-03-2017, 11:26 PM
  3. [SOLVED] Trying to auto-populate based on if one column matches data from another table
    By joshley2010 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-21-2014, 11:15 AM
  4. [SOLVED] Auto Populate cell based on auto filter selection from table in same sheet
    By missydanni in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-02-2013, 05:03 PM
  5. Auto-populate lookup formula based on previous cells
    By Homeslice01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2013, 11:09 PM
  6. Replies: 3
    Last Post: 02-28-2012, 11:54 AM
  7. Macro - auto populate the values based on previous cell values
    By Avinash Kumar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-05-2009, 02:02 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