+ Reply to Thread
Results 1 to 6 of 6

Combining, Matching, Multiple Worksheets

  1. #1
    Registered User
    Join Date
    06-13-2012
    Location
    Tulsa, Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    21

    Combining, Matching, Multiple Worksheets

    I have a major project that I am working on. In the example I have attached, I show where I have the two sheets, with similar information. (Formula I was given to do the initial VLOOKUP is in F2)
    I need to combine the two, but have the information matched across each row so that the final result is a matching part number, description, but also the additional information for each row is pertinent. I have to start with this file, because I have two more to add to it making the final result the combination of four databases that will be match, and I can then manipulate the data correctly.

    Combine Project.xlsx

    Thank you in advance for any help that you can give.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Combining, Matching, Multiple Worksheets

    That vlookup is not working because the numbers in column E are formatted differently than column G.

    Select all the contents of column G (row 2 onwards), you will see a yellow diamond with an exclamation mark to the left of column G. Select that and select Convert to number. Then you will find the vlookup values populating in column F.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    06-13-2012
    Location
    Tulsa, Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Combining, Matching, Multiple Worksheets

    The original formula that was given to me, and still didn't work was =VLOOKUP(TRIM($I6),Sheet2!$F16637:$J19284,3,FALSE)

    As you may see the person was triming the data, in string I6, pulling from Sheet 2 to find the correct data from between F16637 and J19284, placing it in the 3rd cell from the I6 string, making an exact match (I hope I am understanding and explaining the delima correctly)

    My whole problem is that when I do convert data into a number, it truncates it to a point that it is no longer an exact match (dropping any 00 prefix) and I am then returned a #N/A result. When it was all explained, and sent to me originally, the person dropped several of the steps that made this all work in the original file and now I have two more files that I have to combine with my previous example, and all data must be associated to the correct part number.

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Combining, Matching, Multiple Worksheets

    Why this range F16637 and J19284?

    When i converted the data into a number, it worked fine.

  5. #5
    Registered User
    Join Date
    06-13-2012
    Location
    Tulsa, Oklahoma
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Combining, Matching, Multiple Worksheets

    The range is set for the original sheet provided. When I did as you said, it worked. Question is, now I have two more databases to add to this work book, so will the same formula work when I add the data to the right of the existing data. I did notice that the formula worked as you said, when I made your suggested changes, and even worked when columns were added so I have added to your reputation, but am holding off on marking this as solved until I get all the data in place.

    Thank You for your help.

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Combining, Matching, Multiple Worksheets

    As long as you copy the data uptil the column of the vlookup and then drag your formula down, it will work fine.

    Thanks for the rep

+ 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