+ Reply to Thread
Results 1 to 11 of 11

24 combinations for any 4 digit number

  1. #1
    Registered User
    Join Date
    06-18-2014
    Location
    dubai
    MS-Off Ver
    2010
    Posts
    1

    24 combinations for any 4 digit number

    Kindly help me to get an easy way to find all 24 different combinations of a given 4 digit number
    example: given a 4 digit number of 1234
    1234, 1342, 1324, 1423, 1432, 2134, 2143, 2314, 2341, 2413, 2431, 3124, 3142, 3214, 3241, 3412, 3421, 4123, 4132, 4213, 4231, 4312, 4321

    i need to find a way to find similar numbers if i get any 4 digit number

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: 24 combinations for any 4 digit number

    here is one way without code ps its permutations not combinations
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    05-24-2018
    Location
    Malaysia
    MS-Off Ver
    2013
    Posts
    3

    Re: 24 combinations for any 4 digit number

    How do I, or what is a formula to, get Excel to identify all the same numbers that have the same four-digit numbers in a sequence in a worksheet. e.g. 1234, 4321, 2143 ?

    There are one hundred numbers but if 1234 appear together in any order on the worksheet, I want it highlighted or such.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,150

    Re: 24 combinations for any 4 digit number

    Deleted by JT

  5. #5
    Registered User
    Join Date
    05-24-2018
    Location
    Malaysia
    MS-Off Ver
    2013
    Posts
    3

    Post Re: 24 combinations for any 4 digit number

    Below is what I'm looking for, pls refer to attachment.
    1) Enter a 4 digit number then search from the data in the worksheet.
    2) After searching, then hi lighted all the combination

    rgds
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: 24 combinations for any 4 digit number

    Please create a new thread!

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: 24 combinations for any 4 digit number

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Registered User
    Join Date
    05-24-2018
    Location
    Malaysia
    MS-Off Ver
    2013
    Posts
    3

    Re: 24 combinations for any 4 digit number

    I am looking for a formula / way to find the 4 digit combination from a work sheet data.
    1) Enter a 4 digit number then search and hi lighted all the combination from the data in the worksheet.

    Pls refer attachment for more details

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: 24 combinations for any 4 digit number

    CY LO, perhaps you missed my post RIGHT ABOVE yours??

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

  10. #10
    Registered User
    Join Date
    12-12-2020
    Location
    Australia
    MS-Off Ver
    10
    Posts
    1

    Re: 24 combinations for any 4 digit number

    thanks - very helpful.

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: 24 combinations for any 4 digit number

    In the example given it is not combinations it is Permutation of 4 digits.
    Here is the code for 4 digits Permu
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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: 3
    Last Post: 01-28-2016, 10:02 AM
  2. Finding Combinations of a Three digit Number
    By darrylx in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 11-08-2011, 05:29 AM
  3. Replies: 6
    Last Post: 05-10-2011, 11:30 AM
  4. Replies: 2
    Last Post: 09-23-2010, 11:12 AM
  5. 5 digit number combinations
    By Puppiie in forum Excel - New Users/Basics
    Replies: 14
    Last Post: 09-02-2010, 05:02 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