View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Steve Stad Steve Stad is offline
external usenet poster
 
Posts: 14
Default Find position number of third space

Biff,

Thanks for reply. If I follow the logic... it is replacing the blank with
^^ and it finds the 3rd instance of ^^. -- correct? If so good solution and
maybe less typing than these...
=FIND(" ",A1,FIND(" ",A1,FIND(" ",A1)+1)+1)
=FIND(CHAR(7),SUBSTITUTE(A1," ",CHAR(7),3))

"T. Valko" wrote:

Assuming there will *always* be at least 3 spaces:

=FIND("^^",SUBSTITUTE(A1," ","^^",3))

--
Biff
Microsoft Excel MVP


"Steve Stad" wrote in message
...
Can you tell me how to find the position number of the third space in a
string of varying length and text.
e.g.,
123 456 789 111 222
need to find position number of space between 789 and 111
or in:
abcd efghi jklmnopqr stuvxy
need position number of space between "r" and 's'.

I am familiar with =find(" ",a1) to find a space but need help with logic
for third or second space.



.