How to generate all 3 letter combinations

Hi there,

Could anyone tell me how I can generate all of the 3 letter combinations taken from the all the alphabet letters?

Thanks

HJ

G5 1.6 SP

Posted on Jan 4, 2011 3:36 AM

Reply
4 replies

Jan 4, 2011 6:47 AM in response to Howiej

There is more than one set of formulas that will do it. Here is a shot at it. I think it works but I have not created a table of all combinations:

Starting at row 2,
Column B =MOD(ROW()-2,26)+65
Column C =MOD(TRUNC((ROW()-2)/26,0),26)+65
Column D =MOD(TRUNC((ROW()-2)/26^2,0),26)+65
Column E =CHAR(D)&CHAR(C)&CHAR(B)

Jan 4, 2011 8:14 AM in response to Howiej

It does one combination per row, you didn't expect all combinations to appear in cell E2 did you? You'll need 17,576 rows of these formulas to get all combinations.

It is quickest to create a lot of rows if you start with a blank table; no formulas. Once you have all the rows you can type in one row of formulas and then copy/paste to all the other rows in one fell swoop at the end.

Message was edited by: Badunit

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to generate all 3 letter combinations

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.