ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how do I remove spaces from cells that were pasted (https://www.excelbanter.com/excel-discussion-misc-queries/2765-how-do-i-remove-spaces-cells-were-pasted.html)

GolfKing

how do I remove spaces from cells that were pasted
 
I am pasting numbers into a spreadsheet, however its treating them as text
because there is a space before the number. How do I remove the space so it
treats it as a number ? I have used the =trim() function and its not working.
Thanks for any help !

Biff

Hi!

It sounds like you're copy/pasting from a website.

Try this macro from David McRitchie.

Look for TRIMALL, it's about half way down the page:

http://www.mvps.org/dmcritchie/excel/join.htm

Biff

-----Original Message-----
I am pasting numbers into a spreadsheet, however its

treating them as text
because there is a space before the number. How do I

remove the space so it
treats it as a number ? I have used the =trim() function

and its not working.
Thanks for any help !
.



All times are GMT +1. The time now is 10:58 PM.

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