LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 247
Default I NEED macro for Combinations , Permutations or Arrangements ??

Hi , and a good day programmers !


I need strong something very strange and not too usual !! I have
this :

ex: 1

{1|1|1|1|1|1|1|1|1|1|1|1|1|1|1|0|0|0|0|0|0|0|0|0|0 |0|0|0|0|0|0|0|0|0|0|
0|0|0|0|0|0|0|0|0|0}

which is an array in a formula ; for a more clear look , I write down
simplified , (this ,only for
example) :

1 1 1 1 1 0 0 0 0 0
1 1 1 1 0 1 0 0 0 0
1 1 1 1 0 0 1 0 0 0
1 1 1 1 0 0 0 1 0 0
1 1 1 1 0 0 0 0 1 0
1 1 1 1 0 0 0 0 0 1
1 1 1 0 1 1 0 0 0 0
1 1 1 0 1 0 1 0 0 0
1 1 1 0 1 0 0 1 0 0
etc .

I have like in first example , 45 of numbers , 15 of 1 and 30 of 0 ;
I don't know what kind of VBA macro I must use : macro for return
combinations , or permutations , or arrangements ! !
....because , when number 1 must move at every combinations (or
arrangements ) of 45 numbers/variants , in it's place must replace
with 0 ;
__________________________________________________ _______________
In the 45 cells with which macro shall work , the value in every cell
shall look so :

|0 or 1| ; I don't know how them must declare !!
Dim i1 As Long ..... I don't know if it works , because maybe this
kind of values
aren't recognise like a number value !!

Any sugestions will be helpfull
It's a great thing for me to know and only what kind of macro I must
try : combine ,
permutations or arrangements !

 
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
How to create a list of permutations and combinations? Malcolm Excel Discussion (Misc queries) 3 May 20th 23 03:44 AM
How to create a macro in excel so that it can generate a list ofunique records using all permutations and combinations of the data in eachrow ad column Rizwan[_4_] Excel Discussion (Misc queries) 1 August 6th 09 01:44 PM
permutations/combinations [email protected] Excel Programming 2 September 18th 07 07:06 PM
Permutations or Combinations or some other function?? Mark Siler Excel Discussion (Misc queries) 4 December 23rd 06 04:22 PM
permutations/combinations Niels[_3_] Excel Programming 11 March 17th 06 05:21 PM


All times are GMT +1. The time now is 03:16 PM.

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

About Us

"It's about Microsoft Excel"