+ Reply to Thread
Results 1 to 4 of 4

Match supplier name

  1. #1
    Registered User
    Join Date
    12-08-2009
    Location
    Lahore Cantt.
    MS-Off Ver
    Excel 2007
    Posts
    14

    Match supplier name

    Dear All,

    I want to match a supplier name that is "crown computer" from column A of 1st spreadsheet with column A of 2nd spreadsheet and return value from column B of 2nd spreadsheet.

    The problem is supplier name that is "crown computer" is appearing i think 500 times in column A of 1st spreadsheet and in column A of 2nd spread sheet

    Please help formula not working

    Regards

    Ali

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Match supplier name

    So for each occurance of the supplier ID in Sheet1, you want a different match from Sheet2?

    Are there the same number of matches?

    If not, what happens if there are more in Sheet1 than in Sheet2 or vice versa?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-08-2009
    Location
    Lahore Cantt.
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Match supplier name

    Dear Sir,

    Yes, there are the same number of matches, means one amount appearing against all occurance.

    Regards,

    Ali

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Match supplier name

    I think the easiest way is to use a helper column on Sheet2 to identify the consecutive number of each supplier

    So, for example if your suppliers in Sheet2 are in column A and the data you want to get is in column B, then in C2, try:

    =A2&"_"&COUNTIF(A$1:A2,A2)

    copied down.

    Then in Sheet1, your formula in B2 to get the related information would be:

    =INDEX(Sheet2!B:B,MATCH($A2&"_"&COUNTIF($A$1:$A2,$A2),Sheet2!$C:$C,0))

    where Sheet2 is the name of your reference sheet. copied down.

+ 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