+ Reply to Thread
Results 1 to 3 of 3

macro to check rows for matched data

  1. #1
    Registered User
    Join Date
    02-04-2009
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    34

    macro to check rows for matched data

    Hi all,

    i want to write a macro to check rows for matched data.

    e.g. below, starting with row 1, i need the macro to test DATA 1, DATA 2 and DATA 3 with row 2. If all matched, then input "set1" in the respective comment field.

    if not, continue to test with row 3 and so on. After going thru the row, start with row 2 and start testing again.

    DATA 1 DATA 2 DATA 3 Comments
    A 0.5 YZ set1
    A 0.5 YZ set1
    B 0.6 WW set2
    B 0.6 WW set2


    All suggestions are welcome.

    And many tks in advance.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,524

    Re: macro to check rows for matched data

    Didn't you deal with this in Feb?
    http://www.excelforum.com/excel-prog...-matching.html

  3. #3
    Registered User
    Join Date
    02-04-2009
    Location
    singapore
    MS-Off Ver
    Excel 2007
    Posts
    34

    Re: macro to check rows for matched data

    Quote Originally Posted by davesexcel View Post
    Hi Dave,

    That was dealing with some numbers matching with positive and negative signs. I believed this will be different. Although I managed to get the previous one to work and meet my objectives, I wasn't able to fully understand the code.

    Sorry I'm a macro noob.

    The above sample I gave was a short version of my actual data. In actual fact, I have much more to match before passing off the comment. I make it simple hoping that I get some simple codes with I'm able to understand and I can slowly build it up from there.

    Tks.

+ 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