+ Reply to Thread
Results 1 to 8 of 8

hello, please someone has the 300 formations * in ascending order of 7200 from pick4?

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

    hello, please someone has the 300 formations * in ascending order of 7200 from pick4?

    hello, please someone has the 300 formations * in ascending order of 7200 from pick4? *
    hello, please only, has the 300 formations
    * in ascending order of 7200 from pick4?
    * well= 0123 ... 6789

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: hello, please someone has the 300 formations * in ascending order of 7200 from pick4?

    Could you please be a bit more explicit?

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

    Re: hello, please someone has the 300 formations * in ascending order of 7200 from pick4?

    ok PEPE on pick 4 we have 7200 singles formations (with single digits without repetition
    * example
    8516,1658 .... we have 24 possibilities = only need a formation order ascending = 1568

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: hello, please someone has the 300 formations * in ascending order of 7200 from pick4?

    Here's how I did it:

    0) I know I have linked this for you before, but I started with my permutation generator spreadsheet here: https://www.excelforum.com/tips-and-...thout-vba.html
    1) Deleted the dinosaur columns, because this is not using text.
    2) Copied column D into column E so there would be 4 digits.
    3) Copied the bottom row down to about row 8000 to generate all permutations between 0000 and 7999.

    At this point I have quickly generated all possible permutations. Now I need to go through and reject all those that do not match my desired criteria. I was not sure what your criteria are, but it looks like you are looking for A) 4 digits -> B) All unique -> C) in ascending order. 4 digits is taken care of by having only 4 columns, so I just need to test the other two critieria.

    4) To test for all unique, I set up a conditional count to see if any digit occurs more than once.
    4a) In G4:P4, I enter the numbers 0 to 9.
    4b) In G5, I enter a COUNTIFS() function =COUNTIFS($B5:$E5,G$4) -- note the mix of relative and absolute references. Copy across to P5.
    4c) In Q5, I enter =MAX(G5:P5)=1. If all digits are unique, this will return TRUE. If any digit is repeated, this will return FALSE.
    5) To test for sort order, I use a simple AND() function. In R5, I enter =AND(B5<C5,C5<D5,D5<E5). This will return TRUE if the digits are in ascending order and FALSE if any digits are out of order.
    6) Combine the two tests. In S5 =AND(Q5:P5). This will return TRUE if both tests are TRUE, and FALSE if either test is FALSE.
    7) Select G5:S5 and copy/fill down.

    Now I know which entries fit my criteria, I would like an easier way to see only the entries that fit, so I set up a filter on the list.

    8) Select G5 -> Data -> Filter to set up the Autofilter on this list. Then select the dropdown for column S and deselect the FALSE entries. All entries that do not fit both criteria I have set up are hidden.

    That certainly isn't the only way to do this, but it went together pretty quick starting from that sample file I created a while ago.

    I won't be in a position to upload a sample file for a day or two. Is there any of those steps that you have trouble implementing on your own?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

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

    Re: hello, please someone has the 300 formations * in ascending order of 7200 from pick4?

    hello please i can not, can you by the file to download?

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: hello, please someone has the 300 formations * in ascending order of 7200 from pick4?

    It will be a while (maybe until the weekend) before I can upload a file. If you are willing to wait, I guess that's okay. It seems to me that we could coach you through these steps long before I can get around to uploading a file. I have to think that steps 1 through 3 are pretty straightforward. Which step or which formula are you having trouble with?

  7. #7
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: hello, please someone has the 300 formations * in ascending order of 7200 from pick4?

    Before I go to the trouble of uploading a spreadsheet, did you solve this problem in the other thread? https://www.excelforum.com/excel-pro...-criteria.html

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

    Re: hello, please someone has the 300 formations * in ascending order of 7200 from pick4?

    Okay, I got it, great job.

+ 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: 14
    Last Post: 08-12-2017, 11:11 PM
  2. Formations of 6 digits in ascending order
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-28-2014, 02:11 PM
  3. Ascending Order
    By isaackoh in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-26-2014, 10:59 AM
  4. Ascending Order
    By isaackoh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2014, 06:49 AM
  5. [SOLVED] Generate "ascending order no" for columns of data that are not in order
    By abreichenbach in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-20-2013, 02:22 AM
  6. ascending order
    By cbian in forum Excel General
    Replies: 2
    Last Post: 06-05-2008, 07:26 AM
  7. Ascending order and IF
    By kookinuttz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-07-2007, 08:27 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