Forum Discussion
WilliamB972
Apr 21, 2021Copper Contributor
fUNCTION ALLOWING to check the value of a letter which as the first position in a word
Hi Guys, i'm searching in excel the function which allows me to check the the value of a letter which has got the first position in a word. can you help me please ?
- Apr 21, 2021
As a comment
=CODE(LEFT(A2,1))
and
=CODE(A2)
both return the same value.
I personally always prefer to use UNICODE(), but in most cases that doesn't matter.
That could be the basis for other manipulations. For example, to check if first character is alphabet character or not (only for English)
=CHAR(BITXOR(CODE(A2),32))=CHAR(CODE(A2))
SergeiBaklan
Apr 21, 2021Diamond Contributor
As a comment
=CODE(LEFT(A2,1))
and
=CODE(A2)
both return the same value.
I personally always prefer to use UNICODE(), but in most cases that doesn't matter.
That could be the basis for other manipulations. For example, to check if first character is alphabet character or not (only for English)
=CHAR(BITXOR(CODE(A2),32))=CHAR(CODE(A2))
WilliamB972
Apr 26, 2021Copper Contributor
Thank you so much Sergei