+ Reply to Thread
Results 1 to 9 of 9

Text to Column, Vlookup, External Data Problem

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    Atlanta
    MS-Off Ver
    Excel 2010
    Posts
    14

    Text to Column, Vlookup, External Data Problem

    My excel vlookup in sheet "NEW", in column D is not reading the lookup value in that sheet from coulmn A. I can fix it by making the column array from "Sheet1", column A by using text to column, delimited, next, check space, then finish, but it asks me "Do you want to replace the contents of the destination cells?", if I click ok, it deletes column b,c,d in "Sheet1". Sheet 1 is pulled from an access query. How can I get the vlookup to work? File attached.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Text to Column, Vlookup, External Data Problem

    You need to insert new columns first before you do text to column since you are splitting a single cell delimited by a separator in to many cells(columns)

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Text to Column, Vlookup, External Data Problem

    Hi ft9a,

    Please see attached file. There were trailing spaces that I had do remove in Column A "NEW" for the VLOOKUP to work.
    Attached Files Attached Files
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Contributor
    Join Date
    01-30-2011
    Location
    Vancouver, Canada
    MS-Off Ver
    Excel 2010
    Posts
    604

    Re: Text to Column, Vlookup, External Data Problem

    As noted.. there are trailing spaces. Use the TRIM() function to remove these
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    07-10-2013
    Location
    Atlanta
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Text to Column, Vlookup, External Data Problem

    Can you give me a step by step on how you got rid of the trailing spaces in column A, I have a few to do on my own. Thank You

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Text to Column, Vlookup, External Data Problem

    use formula

    =TRIM(A2)
    and copy it down. Then copy the entire range and Paste Special, Values in A2. This will replace data with trailing zeros with data without them.

  7. #7
    Registered User
    Join Date
    07-10-2013
    Location
    Atlanta
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Text to Column, Vlookup, External Data Problem

    Awesome, thanks, I did not see the formula in there, did not think you copied over.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Text to Column, Vlookup, External Data Problem

    One option is to use this macro:

    The macro at this website will remove all leading/trailing
    and multiple interspersed char 32 space characters.
    It will also remove and/or convert char 160 non breaking
    spaces into standard char 32 space characters. It will
    work on text or numbers and the numbers will be
    converted to true numeric numbers.

    I use this macro dozens of times every single day!
    It's a real time saver.

    http://www.mvps.org/dmcritchie/excel/join.htm#trimall
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  9. #9
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Text to Column, Vlookup, External Data Problem

    You're welcome and thank you for your feedback!

    Please mark thread as "Solved" if your issue has been resolved. (Selecting Thread Tools-> Mark thread as Solved).

+ 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] Text To Column problem while getting data from access in excel
    By SubZero99 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-06-2014, 11:10 PM
  2. [SOLVED] External Data Problem
    By Mike_e in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2012, 07:40 AM
  3. [SOLVED] External Data problem
    By Steve M in forum Excel General
    Replies: 1
    Last Post: 03-03-2006, 10:10 AM
  4. External data _ TEXT problem
    By paul in forum Excel General
    Replies: 2
    Last Post: 06-15-2005, 07:05 AM
  5. [SOLVED] external data problem
    By Steve M in forum Excel General
    Replies: 0
    Last Post: 03-31-2005, 12:06 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