+ Reply to Thread
Results 1 to 13 of 13

Compare Two Sheets and match

  1. #1
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Compare Two Sheets and match

    Hi,

    I have a below code which matches the check number and amount with two sheets. But sometimes there will be duplicate check numbers and amount in both the sheets, due to this the code ignores to match. Can anyone help me to sort this issue.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Compare Two Sheets and match

    If you want fix your code then
    Please Login or Register  to view this content.
    This should be much faster
    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Compare Two Sheets and match

    If that takes care of your original question, select Thread Tools from the menu link above and mark this thread as SOLVED.

  4. #4
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Compare Two Sheets and match

    Hi Jindon,

    Thanks, Your second code is really much faster. I will go with your code. Sorry I forgot to mention earlier, could you please add hyperlink in Column J in both the sheets that highlight the matched row until until Column H.

    Can you do some adjustments in your code as below

    Criteria 1. Find Check number and Amount (Code already provided by You) (Remarks - Check Matched)
    Criteria 2. Find Amount which matches in both sheets where there is no check number or ignore check number (Remarks - Matched Amount)
    Criteria 3. Rest all mark as Unreconciled (Remarks - Unreconciled)

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Compare Two Sheets and match

    1) Hyperlink to which one? you might have many to many relation.
    2) Don't understand Criteria 2.

    If you upload a workbook with much less data sets and the result clearly showing the logic will help to understand.

  6. #6
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Compare Two Sheets and match

    Hi,

    I have attached the file with less data and showing the hyperlink in both the sheets.

    Criteria 2 - After running the first Criteria Filter Remarks Column in both Sheets where there is blank and match the amount in both the sheets.
    Criteria 3 - After running Criteria 1 & Criteria 2 Filter Remark Column in both the Sheets where there is blank and enter the value Unreconciled.
    Attached Files Attached Files

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Compare Two Sheets and match

    See if this works.
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Compare Two Sheets and match

    Hi,

    Thanks, I have update my file but some lines it is giving wrong match in (Amount Only), if you check the hyperlink it takes to (Matched Both). Please see the highlighted rows.

    And please Resize(, 8).Address for the hyperlink.
    Attached Files Attached Files

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Compare Two Sheets and match

    Try replace "MatchAndHyperlinks" with below
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Compare Two Sheets and match

    Thank you, for your excellent work. How can I resize the hyperlink address to select the row from A:H

  11. #11
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,265
    Quote Originally Posted by jindon View Post
    Try replace "MatchAndHyperlinks" with below
    Please Login or Register  to view this content.
    Wonderfull
    "ThankyouFor Attention * And Your Help!!"

  12. #12
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Compare Two Sheets and match

    Please Login or Register  to view this content.

  13. #13
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Compare Two Sheets and match

    Quote Originally Posted by jindon View Post
    Please Login or Register  to view this content.
    Excellent, Thank you Jindon for your worderful code.

+ 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] Compare ranges on 2 sheets, exit VBA if they don't match
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-21-2018, 10:03 PM
  2. How to compare columns in 2 sheets then delete if no match
    By needtoknowasu in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-26-2017, 12:13 AM
  3. Compare two sheets and copy match value to new sheet
    By sharan250 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2014, 12:50 AM
  4. Compare two sheets and Match the record
    By kiran16 in forum Excel General
    Replies: 9
    Last Post: 07-30-2013, 10:21 AM
  5. PLEASE HELP!! 2 Sheets Need to Compare & Match....
    By cre8tvlife in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-17-2013, 03:00 AM
  6. Compare two sheets and delete row if match found
    By Steinwall in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-13-2011, 03:25 PM
  7. Compare two sheets, copy from one if values match
    By teaker in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-13-2009, 01:27 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