I have a column containing titles that feature both English / basic Latin character-based titles e.g: John Smith and non-western / extended Unicode character-based titles e.g: 黄小琥 OR Björk
How can I check whether a cells in column B are the 'plain' English titles or the opposite?
Any pointers / suggestions would be gratefully received!
Thanks in advance.
When I tried @lori_m's VBA code on strings that have mixed English and Japanese I got an overflow. Not sure exactly why. I modified it slightly and it works for me now:
It also exits with false the first time it finds a non-latin character. This isn't the best type of coding practice in a FOR loop but it will speed up processing for longer strings.
You could enter this UDF in a VBA code module.
Then if your text is in Column A, enter in cell B1
=IsLatin(A1)
and fill down....alternatively in Excel 2013 you could use this array formula confirmed with CTRL+SHIFT+ENTER:
=AND(UNICODE(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))<128)
also filled down from B1.
Note:
CODE
can't be used for this as it translates unicode to latin letters, for example=CODE("α")
and=CODE("a")
both return 63