+ Reply to Thread
Results 1 to 3 of 3

Bulk convert numbers to text

  1. #1
    Registered User
    Join Date
    09-09-2011
    Location
    Midwest USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Bulk convert numbers to text

    Hi:

    I have a spreadsheet where thousands of individual unique product numbers are listed in rows. Each product row has one or more cells indicating the category (or categories) the product belongs to. This category information is numerical.

    I have a second spreadsheet that has a list of the numerical categories with their corresponding text name. I want to convert the numerical categories in the first spreadsheet to their text names.

    Example:


    Spreadsheet #1

    Product # Category 1 Category 2
    12345 111 222
    23456 333
    34567 111 333
    45678 222


    Spreadsheet #2

    Category # Category Name
    111 Blue
    222 Green
    333 Red


    What I am trying to create:

    Product # Category 1 Category 2
    12345 Blue Green
    23456 Red
    34567 Blue Red
    45678 Green


    Any ideas on how to accomplish this?

    Thanks in advance.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Bulk convert numbers to text

    Assuming that Sheet1! A1 contains "Product#" and Sheet2! A1 "Category#"

    And in Sheet3! A1 you have "Product#" for your final result.

    Put this in Sheet3!B2 and drag down and right.
    =VLOOKUP(VLOOKUP(Sheet3!A2, Sheet1$A1:$C100, COLUMN(B1), False), Sheet2!$A$1:$B$100, 2, False)
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Bulk convert numbers to text

    or

    Please Login or Register  to view this content.



+ 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