Results 1 to 3 of 3

Codes for Text in Excel Worksheet

Threaded View

  1. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Codes for Text in Excel Worksheet

    Hello,

    set up a table in your workbook that lists the codes and the text side by side in two separate columns

    A   B
    10 blue
    11 green
    15 green
    In another area of the spreadsheet, for example in D1 enter the number. In E1 enter this Vlookup formula

    =Vlookup(D1,$A$1:$B$3,2,false)

    E1 will now contain the text. Copy E1 down and enter more codes in column D.

    You can then perform a count of codes in column D to find out how often each code has been used.

    This approach can be refined with error trapping to avoid N/A errors in column E if the cell in column D is empty.

    cheers,
    Last edited by teylyn; 06-05-2011 at 06:47 AM. Reason: broken 'e' key.

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