+ Reply to Thread
Results 1 to 3 of 3

vlookup based on certain text

  1. #1
    Registered User
    Join Date
    05-12-2016
    Location
    houston, tx
    MS-Off Ver
    2010
    Posts
    3

    vlookup based on certain text

    I've been trying to use V-lookup to solve this issue, but have not been successful. I have a cell with a string of text and numbers, and I want to look at only the last the 3 characters, search in an array, and return a value in the next column. Here's the example

    PWREM-02140-100 I want to look up the last 3 characters, 100 in this case (the last 3 characters will be different for each cell), then look up that value in a table, and return the value in the column next to it. In this case, it should return, Owner's Team

    100 Owner's Team
    110 Labor
    170 Travel & Expense Account
    180 Project Assurance Workshops
    190 ProCard Account
    970 Contingency
    980 Allowances
    999 General & Administrative

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: vlookup based on certain text

    If you are using the RIGHT function to extract the last 3 characters, you need to be aware that those characters will be text values, but your lookup table probably has them as numbers. You can put VALUE( ... ) around the RIGHT function to convert them to proper numbers (there are other ways as well).

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-12-2016
    Location
    houston, tx
    MS-Off Ver
    2010
    Posts
    3

    Re: vlookup based on certain text

    Perfect, the adding "Value" did the trick. thank you!

+ 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. VBA to add text based on vlookup
    By PekkaJ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2015, 06:23 PM
  2. VLOOKUP return value based on text in cell
    By Detrie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-04-2014, 07:17 PM
  3. VLOOKUP based on cell with specific text
    By hardpenguin in forum Excel General
    Replies: 2
    Last Post: 01-17-2011, 05:33 PM
  4. insert text based on vlookup condition in two column
    By isabella in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-10-2010, 09:19 PM
  5. Populating a text box in a form based on VLOOKUP function
    By bsalonzo in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-05-2007, 12:03 AM
  6. another vlookup based on text entry
    By MattShoreson in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-19-2006, 08:39 AM
  7. VLOOKUP based on PART of another cell's text
    By djDaemon in forum Excel General
    Replies: 0
    Last Post: 03-09-2006, 09:15 AM

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