Formula for every 3 letter combination (with exceptions)

onurb

New Member
Joined
Sep 2, 2022
Messages
8
Platform
  1. Windows
So this goes a bit over my head so I am coming here in hopes for help and a solution.

I need a formula similiar to the one posted here:

However, I have some exceptions...
I do not want any duplicate letters in the combination (ex. Abc is ok, Aab is not)
The combination must contain a vowel (a,e,i,o,u,y)

Is this possible?
 
=ArrayFormula(QUERY(FLATTEN(FLATTEN(CHAR(64+SEQUENCE(26))&IF(CHAR(64+SEQUENCE(26))=TRANSPOSE(CHAR(64+SEQUENCE(26))),"~",TRANSPOSE(CHAR(64+SEQUENCE(26)))))&IF(REGEXMATCH(FLATTEN(CHAR(64+SEQUENCE(26))&IF(CHAR(64+SEQUENCE(26))=TRANSPOSE(CHAR(64+SEQUENCE(26))),"~",TRANSPOSE(CHAR(64+SEQUENCE(26))))),TRANSPOSE(CHAR(64+SEQUENCE(26)))),"~",TRANSPOSE(CHAR(64+SEQUENCE(26))))),"WHERE NOT Col1 CONTAINS '~' AND (Col1 CONTAINS 'A' OR Col1 CONTAINS 'E' OR Col1 CONTAINS 'I' OR Col1 CONTAINS 'O' OR Col1 CONTAINS 'U' OR Col1 CONTAINS 'Y')"))

the folks over at stackexchange helped me, they were really nice people
 
Upvote 0
Solution

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
For future reference.

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Google Sheets: Need formula for every 3 letter combination
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,223,329
Messages
6,171,493
Members
452,407
Latest member
Broken Calculator

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top