ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   trim cells with space in betwen numbers in cell (https://www.excelbanter.com/excel-worksheet-functions/246727-trim-cells-space-betwen-numbers-cell.html)

Morten

trim cells with space in betwen numbers in cell
 
How can you remove "spaces" between numbers in one cell? (ie 1 000 000) I
need to remove the space between the numbers over a large range of cells with
numbers in them with spaces.

I have tried trimming, cleaning the cells and defining them as numbers but
it seems like the only way to do this is by physically going into each cell
and deleting the space.

A shortcut in doing this would appreciated.

Thanks for all your help.

Sean Timmons

trim cells with space in betwen numbers in cell
 
Highlight the column, Ctrl+H, find space replace with nothing. Will
auto-format to number.

"Morten" wrote:

How can you remove "spaces" between numbers in one cell? (ie 1 000 000) I
need to remove the space between the numbers over a large range of cells with
numbers in them with spaces.

I have tried trimming, cleaning the cells and defining them as numbers but
it seems like the only way to do this is by physically going into each cell
and deleting the space.

A shortcut in doing this would appreciated.

Thanks for all your help.


Luke M

trim cells with space in betwen numbers in cell
 
Assuming its truly the space symbol:

=VALUE(SUBSTITUTE(A2," ",""))

Note that if space character is some other unprintable character such as
CHAR(160), you could use the CODE function to determine which symbol it is
exaclty, and then remove it like so:

=VALUE(SUBSTITUTE(A2,CHAR(160),""))
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Morten" wrote:

How can you remove "spaces" between numbers in one cell? (ie 1 000 000) I
need to remove the space between the numbers over a large range of cells with
numbers in them with spaces.

I have tried trimming, cleaning the cells and defining them as numbers but
it seems like the only way to do this is by physically going into each cell
and deleting the space.

A shortcut in doing this would appreciated.

Thanks for all your help.



All times are GMT +1. The time now is 01:36 PM.

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