Results 1 to 3 of 3
  1. #1
    JeffGeorge is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    111

    Pasting to Excel For VLOOKUP


    I am copying and pasting the results of an Access query to Excel for the purposes of using that data as the source for a VLOOKUP. However, it seems that no matter what I do the cells that were pasted from Access do not correspond to the same values that are in the lookup table in Excel. For example, I want to find the value ABC from column A of the pasted Access data to find the corresponding ABC in the Excel array. It doesn't consider it a match even though both cells are formatted the same way. I've even gone so far to test it by putting a logical comparison of the specific cells in another cell and it claims they are not the same even though the values are exactly the same. The only thing that seems to work is if I manually type over the value pasted from Access with the same value that is already in the cell. Then the VLOOKUP works. However, I am not about to go typing all these values manually. That's why I used an Access query. How do I get Excel to recognize that these values indeed match?

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Maybe the Transferspreadsheet method or creating an Access object and manipulating it using the CopyFromRecordset method or creating and saving an Export procedure using the Wizard will help to remedy the issue.

  3. #3
    JeffGeorge is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    111
    After some further experimentation I was able to remedy this by using the "Match Destination Formatting" paste option. By doing that it seemed to ignore anything special that was coming from Access. Thanks for the help, though.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 02-21-2014, 04:23 AM
  2. Access and the concept VLOOKUP in Excel
    By Bob Blooms in forum Access
    Replies: 1
    Last Post: 08-27-2012, 12:28 PM
  3. Error Copying & Pasting from Excel
    By kristyspdx in forum Access
    Replies: 1
    Last Post: 02-03-2012, 08:42 AM
  4. Excel VLookup vs Access IIF statement
    By Huddle in forum Queries
    Replies: 9
    Last Post: 02-02-2012, 11:00 AM
  5. Copying and pasting
    By wthoffman in forum Access
    Replies: 1
    Last Post: 04-14-2010, 04:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums