+ Reply to Thread
Results 1 to 14 of 14

Merging Data in Common

Hybrid View

  1. #1
    Registered User
    Join Date
    04-12-2009
    Location
    DE
    MS-Off Ver
    Excel 2000
    Posts
    6

    Merging Data in Common

    Here is my dilemna....

    I have two spreadsheets that have one set of data in each column in common.... simply put it is a number.

    From the one spreadsheet, I want to pull the column that is to the right of the number in column and merge it with the other data.

    I am trying to figure out a formula that will accomplish this... I have attached a file to show the two spreadsheets and my end result I would like to have.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    12-16-2006
    Location
    Bangkok
    MS-Off Ver
    Excel 2003
    Posts
    98

    Re: Merging Data in Common

    try this in B2 of the End Result sheet

    =VLOOKUP(A2,Sheet1!$A$2:$D$2,2,0)

    I have also do up the formula for you for the others fields in the attached
    I have change the SKU to teat in Sheet2 for the formulas to works
    Pls note that your data need to be consistent in all your dataset, either real numbers
    or text that look like numbers

    HTH

    cheers, francis
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-12-2009
    Location
    DE
    MS-Off Ver
    Excel 2000
    Posts
    6

    Re: Merging Data in Common

    Thanks for your help... Sorry, I screwed up, I need Price to be on the end result... is the change close to the same?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-16-2006
    Location
    Bangkok
    MS-Off Ver
    Excel 2003
    Posts
    98

    Re: Merging Data in Common

    see attached

    just change the column index number to 3
    =VLOOKUP(A2,Sheet2!$A$2:$D$2,3,0)

    Like JB have mentioned, this will look for exact match
    A more robust lookup formula is Index and Match
    I'll leave it to you to explore.


    cheers, francis
    Attached Files Attached Files

  5. #5
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Merging Data in Common

    VLOOKUP works, but only does this exact thing. A more robust function to learn is INDEX/MATCH which works for pulling information from any direction in relation to a match.

    In B2, enter this formula and copy down:

    =INDEX(Sheet1!B:B,MATCH(A2,Sheet1!A:A,0))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Merging Data in Common

    The two formula you want are:

    EAN:
    =INDEX(Sheet1!B:B,MATCH(A2,Sheet1!A:A,0))

    Price:
    =INDEX(Sheet2!C:C,MATCH(A2,Sheet2!A:A,0))

    you need to fix the SKU numbers, they appear to be the same and apparently were not.

    ========
    If that takes care of your need, be sure to EDIT your original post (Go Advanced) and mark the PREFIX box [SOLVED]
    Last edited by JBeaucaire; 04-12-2009 at 05:04 PM.

  7. #7
    Registered User
    Join Date
    04-12-2009
    Location
    DE
    MS-Off Ver
    Excel 2000
    Posts
    6

    Re: Merging Data in Common

    I appreciate the formula and yes I cannot get it to work because it seems like the "SKUS" are formatted in two diiferent ways. They are being pulled from two different files. Any idea what is going on with this? I cannot put my finger on it, at all!

  8. #8
    Registered User
    Join Date
    12-16-2006
    Location
    Bangkok
    MS-Off Ver
    Excel 2003
    Posts
    98

    Re: Merging Data in Common

    go to col A of sheet1
    you will see a small green triangle which we call smart-tag
    on all cells that is formatted as text
    see attach pic.
    select the range and click on arrow of the smart-tag
    select convert to number

    hope this help

    cheers, francis
    Attached Images Attached Images

  9. #9
    Registered User
    Join Date
    04-12-2009
    Location
    DE
    MS-Off Ver
    Excel 2000
    Posts
    6

    Re: Merging Data in Common

    I am operating in Excel 2000, I don't think it has this function or does it? I think I have access to 2003, does that have the feature?

  10. #10
    Registered User
    Join Date
    12-16-2006
    Location
    Bangkok
    MS-Off Ver
    Excel 2003
    Posts
    98

    Re: Merging Data in Common

    Hi

    assuming your SKU start from A2
    try placing this formula in a empty cells, let say G2 and copy down
    =VALUE(A2)
    then copy the G2 and down to the last cell with data in the column
    go to A2 and paste special >> value
    delete data in Col G

    note: if you are not familiar with this, make a back up copy first.

    version 2003 does have this feature

    HTH

    cheers, francis

  11. #11
    Registered User
    Join Date
    04-12-2009
    Location
    DE
    MS-Off Ver
    Excel 2000
    Posts
    6

    Re: Merging Data in Common

    OK, I posted another spreadsheet with the numbers on there and the SKUS that "look" exactly the same but don't seem to work. I simplified it two lines even though the master file has hundreds of items...

    Any ideas from this sheet?

    I appreciate all the help as this is very important to me!
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    12-16-2006
    Location
    Bangkok
    MS-Off Ver
    Excel 2003
    Posts
    98

    Re: Merging Data in Common

    Hi

    Glad that this works for you.

    If your question has been answered, please mark this thread as [SOLVED] by following these instructions:
    - Go to the first post - Click edit - Click Advanced - Just below the word "Title:" you will see a dropdown with the word [No prefix]. - Change to [Solved] - Click Save

    If you are happy with the results, please give my reputation a boost by clicking the blue scales icon in the upper right portion of the blue bar of this post.

    cheers, francis

+ 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