+ Reply to Thread
Results 1 to 7 of 7

detect in each group their corresponding numbers.

Hybrid View

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

    detect in each group their corresponding numbers.

    detect in each group their corresponding numbers.
    and then see only those with 4 to 5 hits
    https://www.excelforum.com/attachmen...1&d=1591213916
    Attached Files Attached Files

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

    Re: detect in each group their corresponding numbers.

    hello please!

  3. #3
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: detect in each group their corresponding numbers.

    Check my suggestion.
    Sub Detection()
        Dim lr As Integer
        
        With Sheets("Planilha1")
            lr = .Cells(Rows.Count, "A").End(xlUp).Row
            With .Range("Q6:BQ" & lr)
                .Formula = "=IFERROR(IF(Q$5<>"""",IF(HLOOKUP(Q$5,$A6:$O6,1,0),""x""),""""),0)"
                .Value = .Value
            End With
            With .Range("BS6:CA" & lr)
                .Formula = "=IF(COUNTIF(OFFSET($P6,,5*COLUMNS($BS:BS)-5+1,,5),""x"")>3,""x"","""")"
                .Value = .Value
            End With
        End With
    End Sub
    Best Regards,
    Maras.

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

    Re: detect in each group their corresponding numbers.

    hello, error
    01 02 04 05 07 08 09 10 11 12 14 16 17 24 25 x 0 x x x 0 x x x 0 x x x x x x x x 0 x x x 0 x 0 x 0 x 0 0 x x x 0 0 0 x 0 0 0 x 0 0 0 x x erro x

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

    Re: detect in each group their corresponding numbers.

    hello we have a problem, the macro has to detect, in groups with 4 and 5 hits,
    in the example in the 3rd group there are 5 maracaçoes
    * then there must be 5 also in the 3rd position
    * of the list, but the macro didn’t check, can you see?
    https://www.excelforum.com/attachmen...1&d=1591222079
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: detect in each group their corresponding numbers.

    I found an error in my formula.
    The corrected code.
    Sub Detection()
        Dim lr As Integer
        
        With Sheets("Planilha1")
            lr = .Cells(Rows.Count, "A").End(xlUp).Row
            With .Range("Q6:BQ" & lr)
                .Formula = "=IFERROR(IF(Q$5<>"""",IF(HLOOKUP(Q$5,$A6:$O6,1,0),""x""),""""),0)"
                .Value = .Value
            End With
            With .Range("BS6:CA" & lr)
                .Formula = "=IF(COUNTIF(OFFSET($P6,,6*COLUMNS($BS:BS)-6+1,,5),""x"")>3,""x"","""")"
                .Value = .Value
            End With
        End With
    End Sub

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

    Re: detect in each group their corresponding numbers.

    yes ,yes, MARAS, corret conglatualations, thank you!!!

+ 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. detect only the 1st pairs of each group.
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-15-2019, 09:26 AM
  2. Replies: 1
    Last Post: 09-12-2019, 04:17 AM
  3. detect in each group the corresponding.
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-10-2019, 06:28 AM
  4. detect in each group the number of times it was drawn
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-11-2019, 09:25 AM
  5. [SOLVED] please, detect the quantity of each group in the list
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-16-2019, 10:12 PM
  6. detect in each group with their suits
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-02-2018, 10:17 PM
  7. detect in each group with their suits
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-02-2018, 05:08 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