+ Reply to Thread
Results 1 to 5 of 5

AutoFill a Cell based on an Adjacent Cell

  1. #1
    Registered User
    Join Date
    04-18-2020
    Location
    VA
    MS-Off Ver
    Professional Plus 2016
    Posts
    3

    AutoFill a Cell based on an Adjacent Cell

    Hi,

    I am seeking assistance in auto filing a cell with the location name based on a two letter coded in the adjacent cell. The table with with code and associated location name is located on a separate tab within the same workbook.

    For instance:

    If the code is "TH" it equals Fort Hood, TX

    I attached the workbook for illustration.

    The column highlighted in yellow is the source with the two letter code.

    The column highlighted in green is the what I need auto filled based on the letter code in the adjacent cell.

    Thanks!
    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,869

    Re: AutoFill a Cell based on an Adjacent Cell

    Welcome to the forum.

    =INDEX(ORGRAA!$B$8:$B$349,MATCH(A2,ORGRAA!$A$8:$A$349,0))
    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 Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: AutoFill a Cell based on an Adjacent Cell

    Hi swensja and welcome to the forum,

    In B2 put this formula and double click the bottom right of that cell. That will fill down to the bottom and give what I think you want.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Vlookup Two Letter to Code.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    04-18-2020
    Location
    VA
    MS-Off Ver
    Professional Plus 2016
    Posts
    3

    Re: AutoFill a Cell based on an Adjacent Cell

    Perfect! Thanks!

  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,869

    Re: AutoFill a Cell based on an Adjacent Cell

    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. Autofill information in adjacent cell based on a common value
    By kahlert in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-22-2017, 10:46 AM
  2. [SOLVED] autofill with adjacent cell reference
    By RAexcel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-14-2014, 12:43 PM
  3. [SOLVED] Autofill adjacent cell after choose from Drop Down List
    By chinitapr in forum Excel General
    Replies: 1
    Last Post: 10-03-2014, 07:35 PM
  4. VBA Macro to autofill data in column based on value on adjacent cell
    By cazantheman in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-01-2013, 02:04 PM
  5. [SOLVED] autofill until adjacent cell empty
    By Hassan1977 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-03-2013, 01:54 PM
  6. [SOLVED] Autofill cell underneath but only if adjacent cell in next column contains data
    By picton2000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-01-2013, 07:36 AM
  7. [SOLVED] Autofill adjacent cell from pre-defined list
    By Seeded_Batch in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 03-23-2012, 06:25 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