Forum Discussion
Delete cells with exactly three syllables
- Oct 03, 2025
I think this is what you're looking to do (the 3 consonants don't have to be consecutive):
=BYROW(words,LAMBDA(w,COUNTA(REGEXEXTRACT(w,"[^aeiou]",1,1))=3))
Regexextract checks for anything not a vowel (case insensitive) and COUNTA is there to count the consonants. The function is applied with BYROW.
You could then filter for TRUE and delete as needed.
Forget about whether it's possible in Excel. Let me answer with a question about words: my question is whether it is possible to have a universally valid definition of what a syllable is, and how we would infallibly recognize one just based on looking at the word?
There are, after all, so many combinations of consonants and vowels that make up our words, along with multiple ways to pronounce them; I'm certainly aware that hyphenation in automated texts doesn't always follow a reliable algorithm. Yet that's what you seem to be expecting.
I had a PhD friend who acknowledged he'd pronounced "epitome" as a three syllable word--"e pi tome"--that last section rhyming with "home"
He was very embarrassed to learn it was properly "e pi to me"
How would you propose that Excel would recognize whether it was three syllables or four, absent a database containing a complete dictionary?
- SnowMan55Oct 03, 2025Bronze Contributor
If you had been intending to identify word length in syllables, you would need a pronunciation source, such as most dictionaries. The Gutenberg Project offers (for free) this old-but-undated Webster's Unabridged Dictionary that could be used for that; the extraction of words and their syllable counts would include significant VBA coding. But the derived word forms (noun plurals, verb tenses, etc.) would be incomplete, and as this is an old work, some word spellings have changed, some pronunciations have changed, and other words were then not yet in use.
Identifying the number of consonants is more straightforward, but the sometimes-vowels Y and W cause a problem. See the attached workbook for more information and a partial solution. The count of consonants can mostly be done with formulas (I used helper columns). But to "delete" words requires a script; I include VBA code for that in the workbook. (The workbook is not macro-enabled; I will assume that you know how to create and edit macros.)
Edit: The forum software again loses a file that I attached (but it was not the one I intended anyway). Trying again...
Edit #2: Well that failed also. So access the workbook on OneDrive: 2025-10-02 RAHI words containing 3 consonants.xlsx
- RahirosOct 15, 2025Copper Contributor
This also works perfectly, thank you!
- mathetesOct 12, 2025Silver Contributor
Rahiros​ : It looks to me as if SnowMan55​ has solved your challenging problem. Take a look at his solution and (commendably) his explanation! If it does do what you need, please mark is as the solution.
- RahirosOct 01, 2025Copper Contributor
It's only after you comment did I realize the mistake I made:
I said syllable when I mean consonant. Very sorry!
- mathetesOct 03, 2025Silver Contributor
OK, so now we're getting quite a bit closer to a clear (and thereby workable) definition. A question, do you actually want to delete the row in which the "offending cell" resides, or are you OK with blank cells where there once were words with three consonants?
If it's either of those, doing so would require a macro or VBA, and I personally work with neither method.
An alternative, if it's acceptable, is to create a "results column" into which you use a formula to copy the cells from the source column, with blanks for those cells that contained your three consonants.
I'll give some thought, time permitting, to how I'd write a formula to take out three consonant words -- but I'm quite sure that one or two others who've commented may be able to produce such a formula off the top of their heads. I'd like to learn, and this is an opportunity, but it'll take some time. You can help us all by clarifying along the lines of my questions in the first three paragraphs.
For now, I'm happy to have contributed to getting us a clearer definition of the task, a necessary first step on all occasions.
- RahirosOct 07, 2025Copper Contributor
A results column is perfectly fine, as well as leaving the cells blank. I hope this answers your question.