+ Reply to Thread
Results 1 to 4 of 4

VLOOK to exclude first character (apostrophe)

  1. #1
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    VLOOK to exclude first character (apostrophe)

    Hello

    I have 2 files and I`m trying to write a vlookup in the file:

    EH_master cra file to in column c, to say 'vlookup the barcode' in the file from EH_BC comma file but exclude 'the apostrophe' at the beginning. My actual files contain lots more barcodes, except one file has the barcodes with apostrophes at the begginning. I need to have the vlookup return to say whether the barcode exists in the EH_BC comma file (there's no match due to the barcodes having an apostrophe!)

    Thank you so much
    Attached Files Attached Files
    Thanks,

    R.



  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: VLOOK to exclude first character (apostrophe)

    Please try at EH_BC comma.xlsx‎ F2

    =VLOOKUP(--SUBSTITUTE(E2,"'",),'[EH_master cra file.xlsx]Sheet1'!$A$6:$B$999,2,)

  3. #3
    Forum Contributor
    Join Date
    11-13-2015
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    831

    Re: VLOOK to exclude first character (apostrophe)

    hI Bo_Ry

    Thank you for your reply. Sorry I may have not made myself clear. I need the data on the EH_master cra file (so the formula should be input on this file TO CHECK THE DATA FROM THE EH_BC comma file).

    Thank you so much

  4. #4
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: VLOOK to exclude first character (apostrophe)

    You may use TEXT() function to convert EAN to string before vlookup.

    ie.
    original formula
    =Vlookup( A1 , range , column_no , false )
    to
    =Vlookup( Text( A1, "0" ) , range , column_no , false )

    Regards.

+ 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] Vlookup exclude first character
    By rayted in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2021, 09:20 AM
  2. [SOLVED] Vlook from value with apostrophe in front of zeros
    By Brian.Romer in forum Excel General
    Replies: 5
    Last Post: 03-20-2021, 06:02 PM
  3. [SOLVED] VLOOK Formula Only Shows the VLOOK Formula Instead of Lookup Value
    By onlyonekj in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-29-2017, 03:30 PM
  4. regexp character exclude \r and \n
    By klin89 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-20-2017, 05:14 PM
  5. Add EXCLUDE Option in table to Exclude from Solver
    By lbofbb in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-17-2015, 09:05 AM
  6. Why no apostrophe before 0
    By Jordans121 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-07-2010, 10:01 PM
  7. [SOLVED] Apostrophe
    By Ben in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-19-2005, 01: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