+ Reply to Thread
Results 1 to 2 of 2

How to auto-fill text based on text in another cell TWO WAYS

  1. #1
    Registered User
    Join Date
    05-14-2019
    Location
    Alaska, USA
    MS-Off Ver
    Office16
    Posts
    1

    Question How to auto-fill text based on text in another cell TWO WAYS

    Hello,

    I need to know how to auto-fill text based on data in another cell so that the auto-fill will go either way.

    Currently, I am using a list of data from a second sheet to select a company practice. In the adjacent cell, it auto-fills with the code number for that practice. I would like to be able to also enter the code number and have the company practice cell auto-fill based on that information. How can I set up a list like this? Any ideas?

    I tried copying the vlookup formula into the cell with the company practice, but the error that occurred said there are one or more circular references. It makes sense that I cannot accomplish the two-way auto-fill like that, but I am wondering if there is another way.

    The purpose of this would be to have the information fill based on whichever answer the person using the spreadsheet knows. If they know the code number and select it, the practice name will fill. If they only know the practice name and select it, the code number will auto-fill, and the table will have both pieces of information showing.

    Thanks,
    Sara

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: How to auto-fill text based on text in another cell TWO WAYS

    Create a table with two columns, with company practice in the first and code numbers in the second. Name the first column List1 and name the second column List2.

    This assumes that the cells where you want the entries are "company practice" to the left of "code number". Use DV with the list option on the two cells, with =List1 as the source on the first, and =List2 on the second.

    Then:

    1) Copy this code.
    2) Right-Click the sheet tab of interest.
    3) Select "View Code"
    4) Paste the code into the window that appears.
    5) Save the file as a macro-enabled .xlsm file.
    6) Make changes as needed

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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 Fill 6 cells based of of text in one other cell
    By Ksilvan0418 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-23-2014, 05:13 PM
  2. VBA auto fill cell based on text above it
    By adamheon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-19-2014, 11:22 AM
  3. How to auto-fill text based on Value'8000,8001' in another cell
    By Shimazu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-17-2014, 05:51 AM
  4. 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
  5. Replies: 2
    Last Post: 11-29-2012, 11:27 AM
  6. Replies: 1
    Last Post: 05-06-2010, 03:09 AM
  7. [SOLVED] How to auto-fill text based on text in another cell
    By Jason in forum Excel General
    Replies: 2
    Last Post: 02-16-2005, 04:37 PM

Tags for this Thread

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