Taking nothing away from Peo, I do believe this was originated by Leo Heuser
around the turn of the century.
This sticks in memory because Leo's original formula used the @ to denote
the indeterminate character, and this caused a lot of false links to appear
in formulas.
--
Regards,
RD
----------------------------------------------------------------------------
-------------------
Please keep all correspondence within the Group, so all may benefit !
----------------------------------------------------------------------------
-------------------
I like this formula (copied from Peo Sjoblom, IIRC) since the ^^ characters
don't usually appear in cells. Dots/periods appear much more often.
=RIGHT(A1,LEN(A1)-FIND("^^",SUBSTITUTE(A1," ",
"^^",LEN(A1)-LEN(SUBSTITUTE(A1," ","")))))
Len(a1)-LEN(SUBSTITUTE(A1," ",""))
Will tell you how many spaces are in A1.
Say a1 contains:
Bill & Susan Vilbert
=len(a1) returns 20
=LEN(SUBSTITUTE(A1," ",""))
returns 17
doing the subtraction returns 3.
So now the formula looks like:
=RIGHT(A1,LEN(A1)-FIND("^^",SUBSTITUTE(A1," ","^^",3)))
This portion:
SUBSTITUTE(A1," ", "^^",3)
returns:
"Bill & Susan^^Vilbert"
It replaced that 3rd (aka last) occurance with ^^.
The Find() will return 13 so the formula looks like:
=RIGHT(A1,LEN(A1)-13)
=======
Depending on the version of excel you're using, you can use:
Select the cell with the formula
tools|formula auditing|Evaluate formula
And step through each piece of the formula.
(IIRC, xl2002 added this.)
In earlier versions, you can highlight portions of the formula (in the
formula
bar) and hit F9 to see how it evaluates.
Hit ctrl-z to revert
or edit|undo after you've changed it too much.