Results 1 to 34 of 34

Macro to compare against multiple criteria two sheets

Threaded View

  1. #1
    Registered User
    Join Date
    08-23-2012
    Location
    amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    95

    Macro to compare against multiple criteria two sheets

    Hi Guys,


    I would need a macro that can check if for a given code in Column A all the criteria/values (columns B:C:D etc.) are the same for the same code in another sheet of the workbook.
    Could anyone help me please?




    1.The same code can be repeated several times with different values.
    2.The numbers of row of the two sheets can be different.
    3.Some value-cells can be empty.
    4.Criteria could be more then 3. (lets say 4-5)
    5.I would like a column in the sheet-1 that gives back a "V" only if ALL the criteria for the given code match in the two sheets.
    6.I tried the below formula with Index/Match in Array (Match with a boolean) but it doesn't work:

    =INDEX(Sheet2!$A$2:$E$12,MATCH(1,(Sheet1!A2=Sheet2!$A$2:$A$12)*(Sheet1!B2=Sheet2!$B$2:$B$12)*(Sheet1!C2=Sheet2!$C$2:$C$12)*(Sheet1!D2=Sheet2!$D$2:$D$12),0),5)

    Thanks everybody in advance.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 07-23-2015, 10:15 PM
  2. Replies: 0
    Last Post: 05-06-2015, 01:10 PM
  3. Need a macro to Compare multiple sheets and Remove Duplicates
    By ajaypal.sp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-03-2015, 12:18 PM
  4. Macro To Compare Multiple Excel sheets and highlight duplicates
    By Rey123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2013, 05:07 AM
  5. Replies: 2
    Last Post: 09-19-2013, 04:22 AM
  6. Replies: 0
    Last Post: 01-15-2013, 11:30 AM
  7. Compare 2 sheets based on criteria
    By khalid79m in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-26-2007, 04:53 AM

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