Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How do I sort different combination of a 4 digits number

I have entered datas in an excel sheet. So many!
They are all 4 digits numbers. Now I would like excel to automatically sort
for me the different combinations for each number.
For example: from 0 to 9 I came up with the number 2-3-5-6 that has 24 ways
to be permuted. These are the combinations I would like excel to sort
automatically for me.
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default How do I sort different combination of a 4 digits number

What does "from 0 to 9" mean?

On Mar 23, 1:36 pm, didi wrote:
I have entered datas in an excel sheet. So many!
They are all 4 digits numbers. Now I would like excel to automatically sort
for me the different combinations for each number.
For example: from 0 to 9 I came up with the number 2-3-5-6 that has 24 ways
to be permuted. These are the combinations I would like excel to sort
automatically for me.
Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default How do I sort different combination of a 4 digits number

the digits 0 to 9. The datas in each cell are 4 digits numbers picked from 0
to 9.

"Edward" wrote:

What does "from 0 to 9" mean?

On Mar 23, 1:36 pm, didi wrote:
I have entered datas in an excel sheet. So many!
They are all 4 digits numbers. Now I would like excel to automatically sort
for me the different combinations for each number.
For example: from 0 to 9 I came up with the number 2-3-5-6 that has 24 ways
to be permuted. These are the combinations I would like excel to sort
automatically for me.
Thanks.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,290
Default How do I sort different combination of a 4 digits number


Give this a gander...
http://www.j-walk.com/ss/excel/tips/tip46.htm
--
Jim Cone
San Francisco, USA
http://www.realezsites.com/bus/primitivesoftware



"didi"
wrote in message
I have entered datas in an excel sheet. So many!
They are all 4 digits numbers. Now I would like excel to automatically sort
for me the different combinations for each number.
For example: from 0 to 9 I came up with the number 2-3-5-6 that has 24 ways
to be permuted. These are the combinations I would like excel to sort
automatically for me.
Thanks.
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default How do I sort different combination of a 4 digits number

This is not elegant at all, but here's what I did in my attempt to
find a non-VB solution:

Number in question is in A1. I filled out a range with all possible
permuations of a 4 digit number, digits numbered 1 through 4, say
B1:B24:

1234
1243
1324
....
....
4213
4231
4312
4321

Then I put this formula in C1 and dragged down to C24 (not elegant -
array entered w/ ctrl-shift-enter):

{=SMALL(--(MID($A$1,--MID($B$1:$B$24,1,1),1)&MID($A$1,--MID($B$1:$B
$24,2,1),1)&MID($A$1,--MID($B$1:$B$24,3,1),1)&MID($A$1,--MID($B$1:$B
$24,4,1),1)),ROW(A1))}

C1:C24 is now your list of all 24 possible permutations of the number
including repeats in ascending order.

On Mar 23, 1:51 pm, didi wrote:
the digits 0 to 9. The datas in each cell are 4 digits numbers picked from 0
to 9.



"Edward" wrote:
What does "from 0 to 9" mean?


On Mar 23, 1:36 pm, didi wrote:
I have entered datas in an excel sheet. So many!
They are all 4 digits numbers. Now I would like excel to automatically sort
for me the different combinations for each number.
For example: from 0 to 9 I came up with the number 2-3-5-6 that has 24 ways
to be permuted. These are the combinations I would like excel to sort
automatically for me.
Thanks.- Hide quoted text -


- Show quoted text -



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
combination of six digit number from 0 to 49 Divya Excel Worksheet Functions 1 February 26th 07 07:16 AM
Sort by last 2 digits BER Excel Discussion (Misc queries) 2 January 11th 07 11:01 AM
Number Combination finder GMD Excel Worksheet Functions 2 September 8th 06 05:14 PM
How do I find the sum of all digits in a number? monkeyforce5 Excel Discussion (Misc queries) 4 September 9th 05 09:49 PM
Sort by last 2 digits mbparks Excel Worksheet Functions 4 February 17th 05 06:11 PM


All times are GMT +1. The time now is 05:53 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"