+ Reply to Thread
Results 1 to 6 of 6

Converting number into predefined text

  1. #1
    Registered User
    Join Date
    09-19-2009
    Location
    Odense, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    8

    Converting number into predefined text

    Ex.:

    Mr. Davis is number 1111
    Mr. Jones is number 2222
    Mr. Edison is number 3333

    A1=1111
    A2=2222
    A3=3333

    B1=Mr. Davis
    B2=Mr. Jones
    B3= Mr. Edison

    I need the following:

    Cell no. 1 : Here I want to type the number of the person
    Cell nr. 2: Here I want Excel automatically to write the name of the person corresponding to the number I typed in cell no. 1.

    Help is much appreciated.

    How is this done?

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,792

    Re: Converting number into predefined text

    You can use VLOOKUP

    type the number in D2 then in E2 you can use this formula

    =VLOOKUP(D2,A$1:B$3,2,0)

  3. #3
    Registered User
    Join Date
    09-19-2009
    Location
    Odense, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Converting number into predefined text

    Have you tried this yourself - I cannot get it to work

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,792

    Re: Converting number into predefined text

    See the attached, I used the suggested formula in E2 and copied down to E4 to get further results for the numbers in D3 and D4

    Edit: Note that for European (non UK) versions of Excel you may need to replace commas with semi-colons so formula might be

    =VLOOKUP(D2;A$1:B$3;2;0)

    If you open my attachment that conversion should happen automatically, I think (I used commas as per my version above)
    Attached Files Attached Files
    Last edited by daddylonglegs; 09-19-2009 at 09:28 AM.

  5. #5
    Registered User
    Join Date
    09-19-2009
    Location
    Odense, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Converting number into predefined text

    Fantastic! Works now. The semi-colons did it ;o)

    Thank you very much for assisting!

  6. #6
    Registered User
    Join Date
    02-12-2013
    Location
    Sofia
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Converting number into predefined text

    Thank you very much. This is working great. The think that I was trying ti make is to change/replace text with predefined number, stored in another sheet. Works like a charm.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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