+ Reply to Thread
Results 1 to 3 of 3

Permutations for 4 numbers

  1. #1
    Registered User
    Join Date
    08-28-2014
    Location
    Singapore
    MS-Off Ver
    Excel for Mac
    Posts
    1

    Permutations for 4 numbers

    I have 4 different numbers for example 1234. It has 24 permutations… 1234, 4321, 2143 etc etc

    How can I show all 24 in my excel spreadsheet given any 4 numbers?

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

    Re: Permutations for 4 numbers

    I suggest you Google around. This is a well-known problem, and there are lots of solutions out there

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Permutations for 4 numbers

    Please Login or Register  to view this content.
    A
    B
    C
    1
    1234
    1234 B1:B24: {=StrPermute(A1)}
    2
    1243
    3
    1324
    4
    1342
    5
    1423
    6
    1432
    7
    2134
    8
    2143
    9
    2314
    10
    2341
    11
    2413
    12
    2431
    13
    3124
    14
    3142
    15
    3214
    16
    3241
    17
    3412
    18
    3421
    19
    4123
    20
    4132
    21
    4213
    22
    4231
    23
    4312
    24
    4321


    Select B1:B24, paste the formula in the formula bar without the curly braces, press and hold the Cntl and Shift keys, then press Enter.
    Entia non sunt multiplicanda sine necessitate

+ 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. Permutations between 2 numbers
    By gan_xl in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-20-2014, 08:48 AM
  2. Calculate all possible permutations of dataset - 60 numbers on 3 positions
    By Baruch in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2013, 08:11 PM
  3. Create Combinations and permutations from 27 numbers
    By theborg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2012, 02:28 AM
  4. Permutations
    By alan73 in forum Excel General
    Replies: 3
    Last Post: 11-07-2011, 06:37 PM
  5. Replies: 1
    Last Post: 03-08-2008, 10:53 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