+ Reply to Thread
Results 1 to 5 of 5

Comparing two rows to two rounds and finding what is needed

  1. #1
    Registered User
    Join Date
    03-07-2014
    Location
    st
    MS-Off Ver
    Excel 2010
    Posts
    3

    Comparing two rows to two rounds and finding what is needed

    Hello guys,I hope you can help me and I'll try to explain as much clearly as I can.

    So lets say we have two sheets. In both sheets we have like 1700+ rows. Lets assume the sheet2 is correct and we need to compare to sheet 1. In sheet1 and sheet2 we have a product in one column and its code in different.
    Lets say:
    Product Code
    VBP XMZ 1
    VBP XMZ 2
    KBP 1 A5

    So we need to find a code in sheet1 that is united with the wrong product. Like

    VBP 1 A5

    But for example if there is a code that belongs to some product in sheet2 but it doesnt exist in sheet1 then it is correct. Only need to find that belongs not to the correct product

    I hope you'll get it

  2. #2
    Registered User
    Join Date
    03-06-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Comparing two rows to two rounds and finding what is needed

    Hi acme,

    Assuming you want to find the right product in sheet 1(getting the information from sheet 2, paste the below formula in sheet 1 C2

    IF(INDEX(Sheet1!$A$2:$A$2000,MATCH(Sheet2!B2,Sheet1!$B$2:$B$2000,0))=INDEX($A$2:$A$2000,MATCH(B2,$B$2:$B$2000,0)),"Correct Product",CONCATENATE("Right Product Code is",INDEX(Sheet1!$A$2:$A$2000,MATCH(Sheet2!B2,Sheet1!$B$2:$B$2000,0))))

    The above formula will tell you the product code in sheet 1 should be in which product of sheet 2 (since sheet 2 data is correct data.

    if this solves your problem please click "Add Reputation" and mark it as "Solved"
    Else revert back
    Last edited by Terka Ram J; 03-07-2014 at 05:10 AM.

  3. #3
    Registered User
    Join Date
    03-07-2014
    Location
    st
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Comparing two rows to two rounds and finding what is needed

    =IF(INDEX(Sheet3!$A$2:$A$2000;MATCH(Sheet2!J389;Sheet3!$I$2:$I$2000;0))=INDEX($A$2:$A$2000;MATCH(J389;$J$2:$J$2000;0));"Correct Product";CONCATENATE("Right Product Code is";INDEX(Sheet3!$A$2:$A$2000;MATCH(Sheet2!J389;Sheet3!$I$2:$I$2000;0))))

    I was comparing sheet2 to sheet3. In sheet2 code is in J column and in Sheet3 code is in I column. At first it was perfect but later where code was wrong it says it is correct and where code is correct it says it is wrong. Like we have BBB and formula says right product code is still BBB

  4. #4
    Registered User
    Join Date
    03-06-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Comparing two rows to two rounds and finding what is needed

    can you provide me with sample data......

  5. #5
    Registered User
    Join Date
    03-07-2014
    Location
    st
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Comparing two rows to two rounds and finding what is needed

    Hi again, your formule worked very well. But now I need to add one more formula. I need that in the other column excel automatically pastes all the products and where is correct it leaves the same and where right product code is to change to that product.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Trying to create a formula that rounds up when its needed to.
    By Predictedizard in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-09-2013, 03:30 AM
  2. Formula Help Needed Please!!Comparing a cell to a column
    By jgkinder in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-28-2013, 06:15 PM
  3. Replies: 9
    Last Post: 03-11-2013, 09:06 PM
  4. Finding Changes when Comparing Two Spread sheets
    By dbarrow9476 in forum Excel General
    Replies: 1
    Last Post: 09-14-2007, 03:20 PM
  5. Comparing values in 2 columns - Help needed
    By tilde in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2005, 06:28 PM

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