+ Reply to Thread
Results 1 to 2 of 2

excel to enter text data automatically.

  1. #1
    Registered User
    Join Date
    02-26-2009
    Location
    Kingsport, TN
    MS-Off Ver
    Excel 2003
    Posts
    1

    excel to enter text data automatically.

    Hi,

    I would like to know how to have excel enter text data automatically.

    Here is my problem. I have Column A with numerical data. And I want excel to determine if the number is a certain number in cell A2 to enter certain text in cell b2.

    For example: If A2 = 2042 then in B2 enter "INTW" or
    If A2= 2043 then in B2 enter "INTV" or
    If A2=2060 then in B2 enter "TCSW"


    Is there a way to do this?

    I tried to do search but I am not exactly sure of what I am looking for or if it is at all possible.

    Thank you in advance for any and all assistance.
    Last edited by VBA Noob; 02-26-2009 at 12:58 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need excel help - Would like excel to enter text data automatically.

    How big is the list of possibilities?

    If small (less than 5), then can be done within a single formula, otherwise you need to create a table on the side somewhere and use a Vlookup() function:

    e.g. =Vlookup(A2,X:Y,2,0) where X:Y contains table of lookup values and corresponding codes to return.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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