+ Reply to Thread
Results 1 to 3 of 3

Vlookup to extract last five characters or include only first 5 characters

  1. #1
    Registered User
    Join Date
    05-10-2017
    Location
    Miami, FL.
    MS-Off Ver
    365
    Posts
    22

    Unhappy Vlookup to extract last five characters or include only first 5 characters

    Hello. New to excel.

    I have two spreadsheets. I am performing a vlookup, =VLOOKUP(A2,'REAMSView-UtilityActivated-RawD'!$B:$G,6,FALSE) which works fine. So it pulls the zip code 35020-0000 from another tab. However, i want to exclude the last 5 characters, so that the vlookup only inputs the 5 digit zip code, 35020.

    Please help, I have tried many combinations and nothing is working. I am using office 365, if that is relevant.

  2. #2
    Forum Contributor
    Join Date
    01-05-2017
    Location
    New York
    MS-Off Ver
    Office 2016
    Posts
    206

    Re: Vlookup to extract last five characters or include only first 5 characters

    Try:

    =LEFT(VLOOKUP(A2,'REAMSView-UtilityActivated-RawD'!$B:$G,6,FALSE),5)

  3. #3
    Registered User
    Join Date
    05-10-2017
    Location
    Miami, FL.
    MS-Off Ver
    365
    Posts
    22

    Re: Vlookup to extract last five characters or include only first 5 characters

    You did it!!!

+ 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. [SOLVED] How do I get excel to sort alphabetically and include special characters?
    By Yodaman1997 in forum Excel General
    Replies: 7
    Last Post: 12-30-2014, 10:58 AM
  2. [SOLVED] VLOOKUP the middle characters, and ignore the first 3 characters and the last 2
    By bradallen in forum Excel Formulas & Functions
    Replies: 28
    Last Post: 09-18-2012, 04:55 PM
  3. [SOLVED] Extract left characters from string with exception of 2 right characters
    By sweetkel23 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-16-2012, 10:45 PM
  4. Include/Exclude Specific Instring Characters From A Querry Search
    By bdb1974 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-05-2010, 03:43 PM
  5. Configuring SUM formula to include or exclude certain characters?
    By bobschwenkler in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-08-2008, 07:01 PM
  6. HOW DO I EXTRACT ALL CHARACTERS AFTER 5 CHARACTERS ON LEFT
    By GRYSYF in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-12-2005, 07:05 AM
  7. [SOLVED] how to include special characters in a formula?
    By in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2005, 01:05 PM

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