A a_dani20 New Member Oct 3, 2011 #1 hi guys ..Can any formula be made to know that whether a word contains any vowels or not ??? i need a formula which gives true if a word contains any of the 5 vowels otherwise it should give false.
hi guys ..Can any formula be made to know that whether a word contains any vowels or not ??? i need a formula which gives true if a word contains any of the 5 vowels otherwise it should give false.
Mike86 Active Member Oct 3, 2011 #2 This will do it, but there is probably a better way: =IF(IFERROR(FIND("A",UPPER(C16)),0)+IFERROR(FIND("E",UPPER(C16)),0)+IFERROR(FIND("I",UPPER(C16)),0)+IFERROR(FIND("O",UPPER(C16)),0)+IFERROR(FIND("U",UPPER(C16)),0)>=1,"Vowel","No Vowel")
This will do it, but there is probably a better way: =IF(IFERROR(FIND("A",UPPER(C16)),0)+IFERROR(FIND("E",UPPER(C16)),0)+IFERROR(FIND("I",UPPER(C16)),0)+IFERROR(FIND("O",UPPER(C16)),0)+IFERROR(FIND("U",UPPER(C16)),0)>=1,"Vowel","No Vowel")
Luke M Excel Ninja Staff member Oct 3, 2011 #3 Array formula (Ctrl+Shift+Enter to confirm): =OR(ISNUMBER(SEARCH({"a","e","i","o","u"},A2))) If you want more versatility on what to search for, can use range reference as well (assuming words/letters are in the specified range): =OR(ISNUMBER(SEARCH(B2:B6,A2))) Mike, Just as an FYI, you can skip the UPPER functions in your formula if you use SEARCH instead of FIND (search is not case-sensitive)
Array formula (Ctrl+Shift+Enter to confirm): =OR(ISNUMBER(SEARCH({"a","e","i","o","u"},A2))) If you want more versatility on what to search for, can use range reference as well (assuming words/letters are in the specified range): =OR(ISNUMBER(SEARCH(B2:B6,A2))) Mike, Just as an FYI, you can skip the UPPER functions in your formula if you use SEARCH instead of FIND (search is not case-sensitive)
M mycko New Member Oct 3, 2011 #4 also work without array formula =SUMPRODUCT(NOT(ISERROR(FIND({"A","E","I","O","U"},UPPER(A1),1)))*1)>0
also work without array formula =SUMPRODUCT(NOT(ISERROR(FIND({"A","E","I","O","U"},UPPER(A1),1)))*1)>0