Thread: trailing spaces
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
peter peter is offline
external usenet poster
 
Posts: 29
Default trailing spaces

Hi,
Found these formulas on the web
=LEFT(A803,MATCH(2,1/(MID(A803,ROW(INDEX($1:$65536,1,1):INDEX($1:$65536 ,LEN(A803),1)),1)<" "))) (an array) deletes trailing spaces

=REPLACE(A804,1,FIND(LEFT(TRIM(A804),1),A804)-1,"")
deletes beginning spaces

Is it possible to combine these into one formula to remove both beginning and
trailing spaces? I can't use trim because it will also remove duplicate
inbeded
spaces.

thanks,

peter