ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I remove a blank separator from a number (like 2 006) (https://www.excelbanter.com/excel-worksheet-functions/110498-how-do-i-remove-blank-separator-number-like-2-006-a.html)

Pontus

How do I remove a blank separator from a number (like 2 006)
 
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!!

Biff

How do I remove a blank separator from a number (like 2 006)
 
Try this:

=SUBSTITUTE(A1," ","")+0

Biff

"Pontus" wrote in message
...
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!!




tim m

How do I remove a blank separator from a number (like 2 006)
 
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!!


jd

How do I remove a blank separator from a number (like 2 006)
 
=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!!




Gord Dibben

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!!





All times are GMT +1. The time now is 03:13 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com