View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default How do I remove a blank separator from a number (like 2 006)

jd

TRIM does not remove internal spaces unless there are multiple consecutive
spaces.

2spcspcspc006 will TRIM down to 2spc006


Gord Dibben MS Excel MVP

On Mon, 18 Sep 2006 14:49:10 -0700, "jd" wrote:

=trim



"tim m" wrote in message
...
Probably a better way to do this but this should work.

=LEFT(A1,1)&RIGHT(A1,3)

"Pontus" wrote:

I have the number 2006 in the format "2 006" in cell A1 and I want cell

A2 to
be in the correct format "2006". How do I accomplish this? Thanks!!