+ Reply to Thread
Results 1 to 6 of 6

detect only between triplets on both lines

  1. #1
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,179

    detect only between triplets on both lines

    detect only between triplets on both lines
    they are trios in sequences, the second line are trios in a column, which is why it seems that they are not followed
    but in the 5x5 matrix they are,
    the macro will only detect the trios in the groups of each color
    https://www.excelforum.com/attachmen...1&d=1706644363
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,642

    Re: detect only between triplets on both lines

    No macros needed. Simple formula is enough.
    in Q5:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    in R5:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and in S5 also:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    copy these 3 cells to next 3, and repeat it along the row
    Then copy all Q5:BN5 down to the end of the data (I did it for some first 100 rows only, so copy down yourself)
    Best Regards,

    Kaper

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,642

    Re: detect only between triplets on both lines

    By the way: I think it is better to arrange triplets vertically, not horizontally, as I did in Planilha2
    Then there is only one formula, to be copied down and right
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,179

    Re: detect only between triplets on both lines

    hello kaper thanks for posting the macro
    but it has an error message
    runtime error 1004
    the activate method of the worksheet class
    failed

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,606

    Re: detect only between triplets on both lines

    Try. Macro code :
    Please Login or Register  to view this content.
    Last edited by kvsrinivasamurthy; 01-31-2024 at 09:42 AM.
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,642

    Re: detect only between triplets on both lines

    Quote Originally Posted by jorel View Post
    hello kaper thanks for posting the macro
    but it has an error message
    runtime error 1004
    the activate method of the worksheet class
    failed
    ??? I've posted no macro at all. It is purely worksheet formula solution.
    Have you downloaded a worrkbook attached to my post #2?
    There are the formulas already inside. You only shall copy them down.

+ 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] detect only complete triplets.
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-31-2023, 04:30 AM
  2. detect the 10 triplets in the 5 positions .
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2022, 02:04 PM
  3. detect only triplets without repeating digits
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-19-2022, 04:15 PM
  4. [SOLVED] detect lines that have 14 and 15 points from the draw list in the yellow sector.
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-23-2021, 03:56 PM
  5. [SOLVED] separate the 5 triplets and detect the 8 matching odd / even patterns.
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-25-2019, 05:27 PM
  6. [SOLVED] Detect lowest of 2 lines and insert data
    By timsilver in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-07-2014, 10:45 AM
  7. Detect new lines
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 09-28-2011, 03:19 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