View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.misc
Tonso Tonso is offline
external usenet poster
 
Posts: 90
Default find the last occurance of a character in a cell

On Apr 3, 4:28*pm, "T. Valko" wrote:
Try this...

All on one line.

=FIND("^^",SUBSTITUTE(A1," ",
"^^",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))

--
Biff
Microsoft Excel MVP

"Tonso" wrote in message

...



I can use the Find function to find the 1st occurance of a charater in
a cell. But, how to i find the last occurence of a character. in this
case, the i am looking for " ", or <space. The length of the string
can vary, and the number of spaces can vary also.
example:
"Get dog food * * * * * *55"
There are 14 spaces (1+1+12). i am intersted in the location of the
last, or 14th, space, the one that precedes the number 5


Thanks,


Tonso- Hide quoted text -


- Show quoted text -


Don, Biff, Paul,

Thank you all so very much! I do not know what I would do without this
group. You all increase the value of Excel many times over!!

Thansk again,
Tonso