Consonant Vowel convert words to CVCV

forma

New Member
Joined
Aug 14, 2017
Messages
3
Hi! Trying to figure out the formula to convert simple words to consonant vowel consonant format.

cat-->CVC
mama--->CVCV


I found this formula but it only gives me the first letter.

=IF(ISERROR(MATCH(A2,{"A";"E";"I";"O";"U"},0)),"C","V")

Thanks!
 
Hi Peter

You could also use Concat(), which is TextJoin() without the first 2 parameters.
 
Upvote 0

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Hi Peter

You could also use Concat(), which is TextJoin() without the first 2 parameters.
You certainly could pgc - and should :)
Somebody mentioned TEXTJOIN - so I just went right along with that. :eek:

So for completeness, that would be

=CONCAT(IF(ISNUMBER(SEARCH(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1),"aeiou")),"V","C"))

confirmed with C+S+E
 
Last edited:
Upvote 0

Forum statistics

Threads
1,225,277
Messages
6,184,015
Members
453,205
Latest member
aromera

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