+ Reply to Thread
Results 1 to 6 of 6

counting of combinations of 5 numbers in rows of 20

  1. #1
    Registered User
    Join Date
    05-25-2022
    Location
    Magyarország
    MS-Off Ver
    2016
    Posts
    4

    counting of combinations of 5 numbers in rows of 20

    Hi!
    I want to ask for help!
    I would need a macro to look for, on the left side of the workbook
    There are 20 numbers per row from column to column T.
    A column is omitted followed by 5 numbers in a row a
    From column V to column Z.
    The line of 20 numbers would be about 500
    And make up as many as 5 numbers.
    The task would be as follows.
    Rows of 5 numbers should be searched in rows of 20 numbers.
    How many times are there so that all 5 are in a row.
    the result is printed in the cell after the 5-digit row.
    I uploaded a picture but it's just an illustration of the role. I wrote a result in red. Which is not real just as an example.
    I hope I explained it clearly
    Thanks in advance!
    Attached Images Attached Images
    Last edited by Roli78; 05-27-2022 at 03:23 AM.

  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,619

    Re: excel makro

    Make column AA empty and run such macro:

    Please Login or Register  to view this content.
    PS. Please rethink and edit the title of your post. This one could be used for 90% of threads in this sub-forum.
    May be something like "counting of combinations of 5 numbers in rows of 20", etc.
    See for the reference: https://www.excelforum.com/forum-rul...rum-rules.html (Rule 1 - but please read and follow also other rules).
    Attached Files Attached Files
    Last edited by Kaper; 05-26-2022 at 11:09 AM.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    05-25-2022
    Location
    Magyarország
    MS-Off Ver
    2016
    Posts
    4

    Re: excel makro

    Super
    This is perfect !
    Thank you very much!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: counting of combinations of 5 numbers in rows of 20

    @Roli78

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. As you are new here, I will do it for you this time.)

    EDIT: Thank you for changing the title yourself.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    05-25-2022
    Location
    Magyarország
    MS-Off Ver
    2016
    Posts
    4

    Re: counting of combinations of 5 numbers in rows of 20

    Thank you very much!

  6. #6
    Registered User
    Join Date
    05-25-2022
    Location
    Magyarország
    MS-Off Ver
    2016
    Posts
    4

    Re: counting of combinations of 5 numbers in rows of 20

    Kaper provided perfect help.
    Sorry if I write or do something wrong!

+ 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. Replies: 1
    Last Post: 07-19-2019, 11:49 AM
  2. Excel makro, which is selecting specified columns + delete others PLEASE HELP :D
    By MartinV10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2019, 01:45 AM
  3. Makro making Excel stop working
    By gandreso in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-28-2016, 06:00 AM
  4. import file in fb group to excel with vba makro
    By daboho in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-13-2015, 11:01 AM
  5. Makro with two different Excel sessions
    By Iro in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-08-2008, 12:31 PM
  6. [SOLVED] Makro in excel
    By Ted in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-28-2006, 09:10 AM
  7. [SOLVED] Makro in Excel
    By AndersTC in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2005, 01:06 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