+ Reply to Thread
Results 1 to 4 of 4

Populating Data from Table into cell based on String Entry from separate cell

  1. #1
    Registered User
    Join Date
    12-20-2020
    Location
    Ohio, US
    MS-Off Ver
    10
    Posts
    2

    Question Populating Data from Table into cell based on String Entry from separate cell

    Apologies, I cannot seem to find an answer. Probably due to a lack of terminology knowledge.

    Attached is an .XLS which has two tabs. (Entry Tab, Table Tab)

    When users enter a location name into a cell - the expected result is for an office code to populate in a separate cell.

    Entry Tab
    This is where users will enter a location name into a cell and an office code will populate in a separate cell.

    Table Tab
    Table that contains location names and the corresponding office codes.

    On the ENTRY TAB - Column B - users manually enter the location name. (With the assistance of thee appropriate formula) In column E, the corresponding office code will automatically populate.

    Example on Attached .XLS
    On ENTRY TAB
    In Cell B2
    User has entered the location name of "Applewood"
    According to TABLE TAB: Applewood is assigned to Office Code "100"
    In Cell E2 "100" should populate

    Hopefully this makes sense - please advise if there are questions or clarifications.
    Attached Files Attached Files
    Last edited by mpetersen1027; 12-20-2020 at 09:55 PM.

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: Populating Data from Table into cell based on String Entry from separate cell

    Try
    =VLOOKUP(B2,'Table Tab'!$A$2:$B$100,2,0)

  3. #3
    Registered User
    Join Date
    12-20-2020
    Location
    Ohio, US
    MS-Off Ver
    10
    Posts
    2

    Re: Populating Data from Table into cell based on String Entry from separate cell

    thanks for the quick response... I can decipher about 90% of this formula, except for the last two integers ,2,0) what do those last integers mean/do? Thank you.

  4. #4
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2404
    Posts
    1,259

    Re: Populating Data from Table into cell based on String Entry from separate cell

    You're welcome. Glad to help.

    The formula is based in two columns, A & B.
    The argument ",2" represents the column number to get value from.
    The argument ",0" specifies teh type of search: 0 or FALSE for an exact match, and 1 or TRUE for an approximate match. In your case, I think you want an exact match.

    More details in this page:
    https://support.microsoft.com/en-us/...8-93a18ad188a1

+ 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. Populating row in a separate table based on value of cell
    By MattCCT in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-07-2019, 12:19 AM
  2. Populating a set of results based on entry in one cell
    By Harry4sum in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 12-31-2018, 02:06 PM
  3. [SOLVED] Create Table based on data entry in cell
    By cobbrjr in forum Excel General
    Replies: 9
    Last Post: 06-12-2018, 12:20 PM
  4. [SOLVED] populating a table from a separate sheet based on ranking
    By greggatz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-21-2014, 02:54 PM
  5. Populating a Table based on info appering in another cell
    By Paul GF in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-18-2013, 06:46 AM
  6. Replies: 4
    Last Post: 03-26-2013, 07:36 AM
  7. VBA Data Entry Form - Populating Separate Book
    By chiz in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-02-2009, 07:43 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