Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50158

Permutation & Combinations of Names of different lengths

$
0
0
Hi,

i want to know if there is a macro which will give me the permutations and combinations of 5 names of different length that i have .

Example: Below are the 5 names of different lengths . for example

Names
Mark
Michelle
Sandra
Steve
Aaron

Output should be as below.

Output
MMSSA
MMSSr
MMSSo
MMSSN
MMSTA
MMSTR
MMSTO
MMSTN
MMSEA
MMSER
MMSEO
MMSEN


It should check each letter of the 1 name and give the permutation and combination with each letter in all the other 4 names.


Thank You

Viewing all articles
Browse latest Browse all 50158

Trending Articles