+ Reply to Thread
Results 1 to 11 of 11

detect the number of times that pick3 occurred in the green list.

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

    detect the number of times that pick3 occurred in the green list.

    detect the number of times that pick3 occurred in the green list,
    with the list of pick3 draws, no matter
    the position, example =
    012 = is the same as 210 102 201 .... the macro will see no matter the position of the 3 digits, objective
    is to have on the green list the number of times each
    training took place, if it is late,
    remembering in the list of sweepstakes I’ll put lots of sweepstakes I’ll update every day
    make automatic
    https://www.excelforum.com/attachmen...1&d=1595362481
    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 the number of times that pick3 occurred in the green list.

    hello please

  3. #3
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: detect the number of times that pick3 occurred in the green list.

    May be formula can help
    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 the number of times that pick3 occurred in the green list.

    ok BWV good job, i will post new drawings every week, will the formula be automatic?

  5. #5
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: detect the number of times that pick3 occurred in the green list.

    if you have only 3 digits then you have 3!=6 combinations and the formula is ok for it.

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

    Re: detect the number of times that pick3 occurred in the green list.

    ok my doubt is that that list of pick3 draws was an example. I will exchange the list for another
    pick3 official and each week new draws will be placed the formula will make automatic ??

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

    Re: detect the number of times that pick3 occurred in the green list.

    hello,BWV can you help me, I put new sweepstakes, (alias new sweepstakes will be placed every week and the formula is not doing when I place or change the sweepstakes, can I do it with a command to activate? please
    https://www.excelforum.com/attachmen...1&d=1595714069
    Attached Files Attached Files

  8. #8
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,380

    Re: detect the number of times that pick3 occurred in the green list.

    jorel...You need to start learning and stop expecting everything to be done for you...
    Find lastrow in range and change 32 in entire formula to the lastrow variable...
    Please Login or Register  to view this content.
    Using BMV Code....
    Please Login or Register  to view this content.
    Last edited by sintek; 07-26-2020 at 05:28 AM.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: detect the number of times that pick3 occurred in the green list.

    Please try at P5

    =SUMPRODUCT(--(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TEXT(N5,"000"),$B$5:$B$999,,1),$C$5:$C$999,,1),$D$5:$D$999,,1)=""))
    Attached Files Attached Files

  10. #10
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: detect the number of times that pick3 occurred in the green list.

    Bo_Ry . Hello. First of all i always glad to se your solutions. But i also try to get compromise solution between length of formulas and performance.
    I compared
    =SUM(COUNTIFS($B$5:$B$4000;MID(TEXT(N5;"000");{1;1;2;2;3;3};1);$C$5:$C$4000;MID(TEXT(N5;"000");{2;3;1;3;1;2};1);$D$5:$D$4000;MID(TEXT(N5;"000");{3;2;3;1;2;1};1)))
    and
    =SUMPRODUCT(--(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TEXT(N5;"000");$B$5:$B$4000;;1);$C$5:$C$4000;;1);$D$5:$D$4000;;1)=""))

    3870 source rows and 4095 rows . The results are 3,578125 and 13,07813. So for huge data my formula is better.

    Even for set from example 0,0859375 and 0,28125.

    However thanks for remainder about this method.

  11. #11
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: detect the number of times that pick3 occurred in the green list.

    BMV, Thanks for the test.
    Sumproduct always slower than Countifs.

+ 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 the number of numbers drawn from times of each letter in the 4 blocks
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-25-2020, 03:26 AM
  2. Replies: 0
    Last Post: 02-17-2020, 02:13 PM
  3. Replies: 2
    Last Post: 09-20-2019, 11:13 AM
  4. Formula to detect if a number is used at least 3 times but not more than 3
    By addison99 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-11-2019, 10:27 PM
  5. [SOLVED] detect on pick3 from 000 to 999 where you have the doubles increasing in any position .
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-19-2019, 08:55 AM
  6. 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
  7. please detect the front double of the pick3 and see the amount of each groups.
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-23-2019, 10:01 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