+ Reply to Thread
Results 1 to 4 of 4

How to have a cell auto-generate text based on text from another cell?

  1. #1
    Registered User
    Join Date
    10-23-2014
    Location
    NJ
    MS-Off Ver
    2007
    Posts
    8

    How to have a cell auto-generate text based on text from another cell?

    My spreadsheet has 2 worksheets. The first sheet is a "price quote" with a field for product code and one for description.
    The second sheet has a list of all the product codes and descriptions.

    So for example, if I type "Product A" into cell A1, is there a way to have "Description of Product A" auto generate in cell B1 by way of pulling the description from the second worksheet?

    On the second worksheet, the product codes are in Column A and descriptions are in Column B. There are about 250 Products.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to have a cell auto-generate text based on text from another cell?

    The function you would use is VLOOKUP().

    =IF(A1="", "", VLOOKUP(A1, Sheet2!A:B, 2, 0))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    10-23-2014
    Location
    NJ
    MS-Off Ver
    2007
    Posts
    8

    Re: How to have a cell auto-generate text based on text from another cell?

    Quote Originally Posted by JBeaucaire View Post
    The function you would use is VLOOKUP().

    =IF(A1="", "", VLOOKUP(A1, Sheet2!A:B, 2, 0))
    Thank you, that worked!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to have a cell auto-generate text based on text from another cell?

    As it appears you've reached a conclusion, I've marked this thread SOLVED for you.
    FYI, this is done through the Thread Tools located above the first post in this thread. Thanks.

+ 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. How to: Auto-pop text based on text of adjacent cell
    By BobWiley85 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2013, 04:44 PM
  2. Generate a list based on the text in adjacent cell
    By Alkarzar in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-07-2013, 03:48 PM
  3. Replies: 2
    Last Post: 11-29-2012, 11:27 AM
  4. Replies: 1
    Last Post: 05-06-2010, 03:09 AM
  5. [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

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