+ Reply to Thread
Results 1 to 10 of 10

Merging two Excel files

  1. #1
    Registered User
    Join Date
    12-12-2008
    Location
    USA
    Posts
    8

    Merging two Excel files

    I need help with merging two Excel files. 2009 Item List.xls file has two columns Part number and Description. Price.xls file has two colums: part number and price. I need to merge them into a file that whould have three colums: part number, description, price. There 6712 rows in 2009 Item List.xls and 4743 rows in Price.xls file. So I need them matched based on the part number, and have the cells blank for the part numbers for which the price was not assigned.
    Please help.
    Thank you
    Attached Files Attached Files

  2. #2
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    In the first sheet ,use VLOOKUP to lookup the price values from the second
    Ed
    _____________________________
    Always learning, but never enough!
    _____________________________

  3. #3
    Registered User
    Join Date
    12-12-2008
    Location
    USA
    Posts
    8
    This is as much as I know. Will you please write the exact formula, so that I can copy it and paste in the file.

    Thank you very much

  4. #4
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Try this in the first cell, (adjust the cell range Red for the second sheet) and then copy down


    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-12-2008
    Location
    USA
    Posts
    8
    It's not working. I pasted it in C2 cell in the first file, and adjusted cell range to 25 for the second file. I am testing it on the very same files I have attached to his e-mail. If I can get it to work on the shortened version, I guess I would only have to adjust the B range for the real files.

    Will you please try again.
    Thank you

  6. #6
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    It worked for me on your files - make sure both are open.

    You say
    It's not working
    What do you get?

  7. #7
    Registered User
    Join Date
    12-12-2008
    Location
    USA
    Posts
    8
    EdMac,

    This is the formula that I entered
    =IF(ISNA(VLOOKUP(A2,[Price.xls]Sheet1!$A$2:$B$25,2,FALSE)),"",VLOOKUP(A2,[Price.xls]Sheet1!$A$2:$B$25,2,FALSE))

    and nothing happens, no error messages, C2 cell is blank, when you select it, the formula shows in the formula bar.

  8. #8
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    It should work Ok unless the file you are using has the names or prices in different columns to those in the formula - try using the formula auditing tool to trace the progress of the calulation.

  9. #9
    Registered User
    Join Date
    12-12-2008
    Location
    USA
    Posts
    8
    Thank you very much, I will have to work on it more

  10. #10
    Registered User
    Join Date
    12-12-2008
    Location
    USA
    Posts
    8

    Thank you, Thank you

    It works!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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