APADANA
ATALAYA
ARAWANA
ARAARAS
Have the following on A1
Need formula on B1
results required
DNP
LTY
NRW
RRS
APADANA
ATALAYA
ARAWANA
ARAARAS
Have the following on A1
Need formula on B1
results required
DNP
LTY
NRW
RRS
Vowels will change for words like AMADODA
With Power Query
Please Login or Register to view this content.
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
I need DNP not PDN on the first result
Is there any chance you could change the tone of your responses? It's all very 'demanding' at the moment - I realise that English may not be your first language, but 'please' and 'thank you' are universal courtesies.
Ali
Enthusiastic self-taught user of MS Excel who's always learning!
Don't forget to say "thank you" in your thread to anyone who has offered you help.
You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.
Forum Rules (updated August 2023): please read them here.
I suggest that you take the data from PQ as shown and close and load to Excel. Then do a Text to Columns and then do a horizontal alpha sort. Once this is complete, concatenate the columns.
Based on your examples, you could use a UDF along lines of below:
the above, stored in standard module, could be called along lines of: =ConsonantSort(A1) ... you have option of calling with modified exclusion criteria also, e.g. =ConsonantSort(A1,"EIOU") would return all the As.Please Login or Register to view this content.
Last edited by XLent; 08-20-2021 at 06:56 AM. Reason: modified Byte to Long - just in case...
The below formula only applicable for Excel 2013 and above. If you are using an older version, you have to consider Power Query or VBA.
Formula:Please Login or Register to view this content.
You may also use this formula if you have Office 365.
Formula:Please Login or Register to view this content.
Row row row your boat
Gently down the stream
Thia ARRAY formula works.
Max characters is assumed as 30.
Change it if required more.
In B2 copied down
To enter ARRAY formulaPlease Login or Register to view this content.
Copy and paste the formula in cell
Press F2
Press Ctrl+Shift+Enter together
Excel covers the formula with {}.
Pl note
Array formula should be confirmed with Ctrl+Shift+Enter keys together.
If answere is satisfactory press * to add reputation.
eliminate all vowel letters and sort by alphabet.
Formula:Please Login or Register to view this content.
step 1, remove the vowels (option 1):
with all words in column A, to remove all vowels, place this formula into cell B1:
then drag down to other cellsPlease Login or Register to view this content.
step 1, remove the vowels (option 2):
you can create a VBA Module with this code:
then use this formula in cell B1:Please Login or Register to view this content.
then drag down to other cellsPlease Login or Register to view this content.
step 2, sort the consonants (option 1, for exactly 3 consonants):
if there will only be 3 consonants, to sort them (AFTER the vowels have been removed), place this formula into cell C1:
then drag down to other cellsPlease Login or Register to view this content.
step 2, sort the consonants (option 2, for any number of consonants):
if there will be more OR less than 3 consonants, to sort them (AFTER the vowels have been removed), you can create a VBA Module with this code:
then use this formula in cell C1:Please Login or Register to view this content.
then drag down to other cellsPlease Login or Register to view this content.
Here is a shorter array-entered** formula that should work (provided your version of Excel has the TEXTJOIN function in it)...
Formula:Please Login or Register to view this content.
**Commit this formula using CTRL+SHIFT+ENTER and not just Enter by itself
Last edited by Rick Rothstein; 08-22-2021 at 04:12 AM.
you could try to place this formula in cell B1:
then drag down to other cellsPlease Login or Register to view this content.
Actually, if your version of Excel has the CONCAT function, we can shorten the above array-entered** formula by 6 characters...
Formula:Please Login or Register to view this content.
**Commit this formula using CTRL+SHIFT+ENTER and not just Enter by itself
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks