+ Reply to Thread
Results 1 to 7 of 7

Mark up pairs, triplets, quads, and quints+ of repeating cells and give each a designator

  1. #1
    Registered User
    Join Date
    03-26-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    9

    Mark up pairs, triplets, quads, and quints+ of repeating cells and give each a designator

    Hi I'm new to VBa and I have a problem. I have 28,000 rows of data that are in Column A. In Column B I need to put "<-3> [SSM] (CSM)" next to all grouped cells that contain duplicate data of 2s, 3-4s, & quantities of 5+ but I want to exclude/ignore 0 readings.

    So if I have 3 adjacent cells in column A that contain the same data, I want to put the text "<1> [SSM] (CSM)" next to each one in column B.

    I tried modifying the code I found here http://www.excelforum.com/excel-prog...ata-macro.html but I can't get it to work.

    Please Login or Register  to view this content.
    I have tried this code, but I can't get it to work:
    Please Login or Register  to view this content.
    Please show me how to edit my code to make this work.

    Any help is appreciated!

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Mark up pairs, triplets, quads, and quints+ of repeating cells and give each a designa

    Try this:-
    Please Login or Register  to view this content.
    Regards Mick

  3. #3
    Registered User
    Join Date
    03-26-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Mark up pairs, triplets, quads, and quints+ of repeating cells and give each a designa

    Thanks Mick, that's closer, but I only need it to select the cells that are adjacent. Using this code returned the following results in some places

    Please Login or Register  to view this content.
    The first 3 single values should not have been designated. How can that be fixed?

    Thanks again!

  4. #4
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Mark up pairs, triplets, quads, and quints+ of repeating cells and give each a designa

    I'm understanding you to mean that those values that are Not Adjcent but have duplicates are being marked, but you only want values that are duplicate and in adjacent cells to be marked.
    Try this:-
    Please Login or Register  to view this content.
    Regards Mick

  5. #5
    Registered User
    Join Date
    03-26-2013
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Mark up pairs, triplets, quads, and quints+ of repeating cells and give each a designa

    Awesome! Thank you!

  6. #6
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Mark up pairs, triplets, quads, and quints+ of repeating cells and give each a designa

    Your welcome
    Regrds Mick

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Mark up pairs, triplets, quads, and quints+ of repeating cells and give each a designa

    woodrrow,

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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