View Single Post
  #8   Report Post  
Posted to microsoft.public.excel.programming
Jimbo213 Jimbo213 is offline
external usenet poster
 
Posts: 30
Default Find Space from Right [in cell formula]



Thanks, I assume you meant "counting from the right ... as InstrRev"

How would you modify that to find the SECOND space from the right?

--
Thanks for your reply & assistance.
Jimbo213


"Ron Rosenfeld" wrote:

On Thu, 25 Jun 2009 12:54:03 -0700, Jimbo213
wrote:


I found a Jan 5 2009 post to find the FIRST space from the right using the
InStrRev function. I'd like to incorporate this in a cell's formula, not a
VBA function.

Is that possible?



The position in the string of the last space (counting from the left as does
the INSTRREV VBA function):

=FIND(CHAR(1),SUBSTITUTE(A1," ",CHAR(1),LEN(A1)-LEN(SUBSTITUTE(A1," ",""))))



--ron