I'm using Office 2011 on Mac.
I'm trying to write a formula to strip lower-case characters (and ideally spaces as well, but that's less important) from text in a cell. The purpose is to convert names to initials; thus "Jane" would become "J", "DeLacy" would become "DL", "Mary-Anne" would become "M-A", and "Anna Elise" would become "AE".
So far I have this (assuming the name is in B2), for stripping lower-case characters:
=SUBSTITUTE(B2,CHAR(ROW(97:122)),"")
However, this only removes "a" (so "Jane" becomes "Jne"). The problem seems to be that the CHAR function is returning only the first character rather than the range specified:
=CHAR(ROW(97:122))
returns "a".
So does
=CHAR(ROW(INDIRECT("97:122")))
How do I get it to return the whole range so that all the lower-case characters are removed?