+ Reply to Thread
Results 1 to 8 of 8

Match LastRow to Rows Above to Check for Duplicates Rows

  1. #1
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    108

    Post Match LastRow to Rows Above to Check for Duplicates Rows

    Hi -

    I have a macro that adds a data after the last used row of the sheet coming from another sheet. What I want is macro that will check if the last row that I added is already present on the sheet. Data Column "A" is there identifier, so the comparison will start from column B until to the last used column for that row. I've attached a sample sheet. When there is duplicate I want a message box to pop up.

    Hudas
    Attached Files Attached Files
    Last edited by Hudas; 03-12-2012 at 11:58 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Match LastRow to Rows Above to Check for Duplicates Rows

    Here You Go:

    Please Login or Register  to view this content.
    Regards,
    Khaled Elshaer
    www.BIMcentre.com

    Remember To Do the Following....
    1. Thank those who have helped you by clicking the Star below their post.
    2. Mark your post SOLVED if it has been answered satisfactorily:
    • Select Thread Tools (on top of your 1st post)
    • Select Mark this thread as Solved

  3. #3
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    108

    Re: Match LastRow to Rows Above to Check for Duplicates Rows

    Hi Kelshaer,

    Thank you very much for your time, If I understand your code correctly it checks column B to H right? My original data goes until column AK, if its not too much to asked can you please edit your code to check until column AK and instead of the pop up base on the row would be fine if the reference will be the value in column A?

    Please thank you very much..
    Hudas

  4. #4
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Match LastRow to Rows Above to Check for Duplicates Rows

    Here you Go:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    108

    Re: Match LastRow to Rows Above to Check for Duplicates Rows

    Hi Kelshaer-

    Thank you very much for your help.. I really really appreciate it!! Have a good day sir!

    Hudas

  6. #6
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    108

    Re: Match LastRow to Rows Above to Check for Duplicates Rows

    Hi -

    Just a follow-up question.... Would it be possible to display on the message box both reference on column A for the duplicates?, not just the duplicate found but also the row it was compared from.

    Hudas

  7. #7
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Match LastRow to Rows Above to Check for Duplicates Rows

    No Problem

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    02-16-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    108

    Re: Match LastRow to Rows Above to Check for Duplicates Rows

    Hi Kelshaer,

    Again thank you for you time and Thanks a lot for your help.

    Hudas

+ 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