+ Reply to Thread
Results 1 to 3 of 3

number codes to text

  1. #1
    Registered User
    Join Date
    08-04-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    1

    number codes to text

    Hi there,

    is there a way to convert number code to text?

    eg

    7 = Fire damage
    21 = Water damage
    43 = Impact damage

    At the moment all the column has is numbers, ideally I'd like to convert them to the sentence?

    Look forward to hearing from you.

    Yours

    Daniel.

  2. #2
    Valued Forum Contributor quekbc's Avatar
    Join Date
    01-18-2010
    Location
    Sydney, Australia
    MS-Off Ver
    2010, 2013, 2016
    Posts
    1,149

    Re: number codes to text

    If you have a table stating what each number codes represent, you can then use INDEX and MATCH functions to convert those numbers into the relevant texts in a separate cell. See attached for an example.
    Attached Files Attached Files

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: number codes to text

    Create a 2 column table with the number code in the left column and the corresponding text string in the right column...

    Data Range
    A
    B
    C
    D
    E
    1
    Code
    Type
    ------
    Code
    Type
    2
    21
    Water damage
    7
    Fire damage
    3
    21
    Water damage
    4
    43
    Impact damage


    This formula entered in B2:

    =VLOOKUP(A2,D$2:E$4,2,0)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Using ANSI codes in Custom Number Formats
    By fitzt70 in forum Excel General
    Replies: 1
    Last Post: 07-24-2014, 07:27 PM
  2. Replies: 0
    Last Post: 04-22-2013, 12:13 PM
  3. [SOLVED] Count number of bar codes
    By Bren1987 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-18-2012, 02:07 PM
  4. [SOLVED] Adding country codes to a phone number... Please help
    By percyth1 in forum Excel General
    Replies: 1
    Last Post: 03-08-2012, 10:38 PM
  5. Get text using number codes
    By drewbagel423 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-07-2008, 04:16 PM
  6. Five-digit Number Format Codes
    By Funboy in forum Excel General
    Replies: 6
    Last Post: 08-09-2007, 10:18 AM
  7. [SOLVED] How do you sort zip codes with 0's being the lead number?
    By Pat Hughes in forum Excel General
    Replies: 2
    Last Post: 08-03-2005, 03:05 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