ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   DELETE SPACES In part (https://www.excelbanter.com/excel-programming/354198-delete-spaces-part.html)

Juan

DELETE SPACES In part
 
Hello all,
I have a part field lets say Column A and some parts containn a space in
between some parts. Is there a way to delete the empty space? Here's example:

XX124 TZ I want this to be XX124 TZ
ZZ243 TX I want this to be ZZ243 TX
ZZ356TZ This stays same
xyw3 TZ I want this to be xyw3 TZ

So I just want to delete the spaces.

Please advise any help.

thank you,

Juan


Dave Peterson

DELETE SPACES In part
 
I don't see a difference between the before and after...

maybe...

=substitute(a1," ","")

or just selecting your range
edit replace
what: (spacebar)
with: (leaveblank)
replace all



Juan wrote:

Hello all,
I have a part field lets say Column A and some parts containn a space in
between some parts. Is there a way to delete the empty space? Here's example:

XX124 TZ I want this to be XX124 TZ
ZZ243 TX I want this to be ZZ243 TX
ZZ356TZ This stays same
xyw3 TZ I want this to be xyw3 TZ

So I just want to delete the spaces.

Please advise any help.

thank you,

Juan


--

Dave Peterson

purplemx via OfficeKB.com

DELETE SPACES In part
 
Juan.

Please try =trim(a1)

To delete blank spaces

Thank you



Juan wrote:
Hello all,
I have a part field lets say Column A and some parts containn a space in
between some parts. Is there a way to delete the empty space? Here's example:

XX124 TZ I want this to be XX124 TZ
ZZ243 TX I want this to be ZZ243 TX
ZZ356TZ This stays same
xyw3 TZ I want this to be xyw3 TZ

So I just want to delete the spaces.

Please advise any help.

thank you,

Juan


--
purplemx

Message posted via http://www.officekb.com


All times are GMT +1. The time now is 05:28 PM.

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