ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   help to remove space before the data (https://www.excelbanter.com/excel-worksheet-functions/448231-help-remove-space-before-data.html)

Ricky Martin

help to remove space before the data
 
1 Attachment(s)
I have a problem, how to remove the spaces before and after the figure number.
two days I've searched but have not found the answer.

thank you

ricky

Maurizio Borrelli

help to remove space before the data
 
Il giorno giovedì 21 febbraio 2013 20:53:47 UTC+1, Ricky Martin ha scritto:
how to remove the spaces before and after the figure number.
+-------------------------------------------------------------------+
|Filename: Pro.JPG |
|Download: http://www.excelbanter.com/attachment.php?attachmentid=769|
+-------------------------------------------------------------------+


Hi Ricky,
try:
1. Select range
2. Data Text to Columns
3. (.) Delimited [Next]
4. [v] Space [Next]
5. (.) Do not import column (skip) [Finish]
--
Ciao!
Maurizio

Kevin@Radstock

Hi

Formula approach for a couple of unwanted characters.
1: =TRIM(A1)
2: =TRIM(SUBSTITUTE(A1,CHAR(160),""))
3: =SUBSTITUTE(SUBSTITUTE(A1,CHAR(32),""),CHAR(160)," ")

Kevin

Quote:

Originally Posted by Ricky Martin (Post 1609577)
I have a problem, how to remove the spaces before and after the figure number.
two days I've searched but have not found the answer.

thank you

ricky


Ricky Martin

Quote:

Originally Posted by Maurizio Borrelli (Post 1609595)
Il giorno giovedì 21 febbraio 2013 20:53:47 UTC+1, Ricky Martin ha scritto:
how to remove the spaces before and after the figure number.
+-------------------------------------------------------------------+
|Filename: Pro.JPG |
|Download: http://www.excelbanter.com/attachment.php?attachmentid=769|
+-------------------------------------------------------------------+


Hi Ricky,
try:
1. Select range
2. Data Text to Columns
3. (.) Delimited [Next]
4. [v] Space [Next]
5. (.) Do not import column (skip) [Finish]
--
Ciao!
Maurizio

Quote:

Originally Posted by Kevin@Radstock (Post 1609601)
Hi

Formula approach for a couple of unwanted characters.
1: =TRIM(A1)
2: =TRIM(SUBSTITUTE(A1,CHAR(160),""))
3: =SUBSTITUTE(SUBSTITUTE(A1,CHAR(32),""),CHAR(160)," ")

Kevin

thanks to all of you guys, but honestly i dont know why it doesnt work :(

im upload my file, hope you can slove this thing

if you slove it, please let me know what happen to my data.

http://www.4shared.com/office/KDDpH0fw/Problem.html

thanks a lot

Claus Busch

help to remove space before the data
 
Hi Ricky,

Am Fri, 22 Feb 2013 10:46:52 +0000 schrieb Ricky Martin:

if you slove it, please let me know what happen to my data.

HTTP://WWW.4SHARED.COM/OFFICE/KDDPH0FW/PROBLEM.HTML


the posted link is not valid

Select your column D = Data = TextToColumns = Fixed width = Finish


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2

Maurizio Borrelli

help to remove space before the data
 
Hi Ricky,
if =CODE(A1) result 160 try:
1. Select range
2. Data Text to Columns
3. (.) Delimited [Next]
4. [v] Other [ALT+0160(Tn)] [Next]
5. (.) Do not import column (skip) [Finish]

--
Ciao!
Maurizio

Il giorno venerdì 22 febbraio 2013 08:34:44 UTC+1, Maurizio Borrelli ha scritto:
Il giorno giovedì 21 febbraio 2013 20:53:47 UTC+1, Ricky Martin ha scritto:
how to remove the spaces before and after the figure number.
+-------------------------------------------------------------------+
|Filename: Pro.JPG |
|Download: http://www.excelbanter.com/attachment.php?attachmentid=769|
+-------------------------------------------------------------------+


Maurizio Borrelli

help to remove space before the data
 
Il giorno venerdì 22 febbraio 2013 15:14:17 UTC+1, Maurizio Borrelli ha scritto:
4. [v] Other [ALT+0160(Tn)] [Next]


Ops!

4. [v] Other [ALT+0160(Num)] [Next]

Num=Numeric Keypad

--
Ciao!
Maurizio

Mazzaropi

Quote:

Originally Posted by Ricky Martin (Post 1609577)
I have a problem, how to remove the spaces before and after the figure number.
two days I've searched but have not found the answer.
thank you
ricky

Ricky, try to do this:

B1 -- MID(A1,2,4)

Copy down to the other cells.
Please, tell me if it worked for you.

Ricky Martin

Quote:

Originally Posted by Claus Busch (Post 1609613)
Hi Ricky,

Am Fri, 22 Feb 2013 10:46:52 +0000 schrieb Ricky Martin:

if you slove it, please let me know what happen to my data.

HTTP://WWW.4SHARED.COM/OFFICE/KDDPH0FW/PROBLEM.HTML


the posted link is not valid

Select your column D = Data = TextToColumns = Fixed width = Finish


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2

Quote:

Originally Posted by Maurizio Borrelli (Post 1609614)
Hi Ricky,
if =CODE(A1) result 160 try:
1. Select range
2. Data Text to Columns
3. (.) Delimited [Next]
4. [v] Other [ALT+0160(Tn)] [Next]
5. (.) Do not import column (skip) [Finish]

--
Ciao!
Maurizio

Il giorno venerdì 22 febbraio 2013 08:34:44 UTC+1, Maurizio Borrelli ha scritto:
Il giorno giovedì 21 febbraio 2013 20:53:47 UTC+1, Ricky Martin ha scritto:
how to remove the spaces before and after the figure number.
+-------------------------------------------------------------------+
|Filename: Pro.JPG |
|Download: http://www.excelbanter.com/attachment.php?attachmentid=769|
+-------------------------------------------------------------------+

Quote:

Originally Posted by Maurizio Borrelli (Post 1609615)
Il giorno venerdì 22 febbraio 2013 15:14:17 UTC+1, Maurizio Borrelli ha scritto:
4. [v] Other [ALT+0160(Tn)] [Next]


Ops!

4. [v] Other [ALT+0160(Num)] [Next]

Num=Numeric Keypad

--
Ciao!
Maurizio

Quote:

Originally Posted by Mazzaropi (Post 1609636)
Ricky, try to do this:

B1 -- MID(A1,2,4)

Copy down to the other cells.
Please, tell me if it worked for you.

many don't work, i dont know what happen but now i have 2 problem

and i upload it www.mediafire.com/view/?ecc71y94v1zihdw

hope it work, honestly im tired of this, but i must finish this
i dont know what to say but, i know you guys can help me

thank you very much

Claus Busch

help to remove space before the data
 
Hi Ricky,

Am Sat, 23 Feb 2013 10:04:31 +0000 schrieb Ricky Martin:

many don't work, i dont know what happen but now i have 2 problem

and i upload it www.mediafire.com/view/?ecc71y94v1zihdw


try:
Find & Select = Replace = Find what: Alt+0160 = Replace with: nothing
= Replace All
or do it with VBA:

Sub RemoveSpaces()
Dim LRow As Long
Dim rngC As Range

LRow = Cells(Rows.Count, 1).End(xlUp).Row
With Range("A1:B" & LRow)
.HorizontalAlignment = xlGeneral
.VerticalAlignment = xlBottom
.Orientation = 0
End With

For Each rngC In Range("A1:B" & LRow)
rngC = Replace(rngC, Chr(160), "")
Next
End Sub


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2

Mazzaropi

Quote:

Originally Posted by Ricky Martin (Post 1609650)
many don't work, i dont know what happen but now i have 2 problem and i upload it www.mediafire.com/view/?ecc71y94v1zihdw
hope it work, honestly im tired of this, but i must finish this
i dont know what to say but, i know you guys can help me
thank you very much

Ricky, Good morning.

If now do you want to remove all spaces in both columns try this one:

C1 -- =VALUE(SUBSTITUTE(A1,CHAR(160),""))
D1 -- =SUBSTITUTE(B1,CHAR(160),"")

Please, tell us if it worked for you now.

Ricky Martin

1 Attachment(s)
Quote:

Originally Posted by Mazzaropi (Post 1609660)
Ricky, Good morning.

If now do you want to remove all spaces in both columns try this one:

C1 -- =VALUE(SUBSTITUTE(A1,CHAR(160),""))
D1 -- =SUBSTITUTE(B1,CHAR(160),"")

Please, tell us if it worked for you now.

im really sorry but its not working too, and i dont know why :(

Ricky Martin

Quote:

Originally Posted by Ricky Martin (Post 1609666)
im really sorry but its not working too, and i dont know why :(

Hiiiii alll i made it, i read a thread thats same problem too me and comment says "maybe its unbreaking space html" so i copy space from that data and paste to "find what" and replace all, and its WORKS..

i really appreciate to all of you, i dont know without you guys..

thanks thanks you so much

Mazzaropi

1 Attachment(s)
Quote:

Originally Posted by Ricky Martin (Post 1609667)
Hiiiii alll i made it, i read a thread thats same problem too me and comment says "maybe its unbreaking space html" so i copy space from that data and paste to "find what" and replace all, and its WORKS..
i really appreciate to all of you, i dont know without you guys..
thanks thanks you so much

Ricky, good afternoon.

I used the formulas that I suggested you before, in your example Workbook.
I believe that it worked.
Take a look at:


All times are GMT +1. The time now is 04:51 PM.

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