Searching for Capital Letters
Hi Roger,
A1: TEXT
B1: NUMBER
then
=MATCH(B1,MMULT(TRANSPOSE(1-(CODE(MID(A1,ROW(INDIRECT("1:"&LEN(A1))),1))=CODE( MID(LOWER(A1),ROW(INDIRECT("1:"&LEN(A1))),1)))),--(ROW(INDIRECT("1:"&LEN(A1)))-1+TRANSPOSE(LEN(A1)-ROW(INDIRECT("1:"&LEN(A1))))<=LEN(A1)-1)),)
[array-entered] returns the position of the NUMBER-th capital letter in
TEXT.
Nick's approach - which I followed - works also for German "Umlaute".
Have fun,
Bernd
|