Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Remove character at end of data

I have a column of data in the form of 1-1, 1-2, … 1-123, it has a space at
the end of the numbers, not really a space, I can copy the "space" and paste
it in another cell and then use = code and I get a code of 160. how can I
get this out from behind all the data in column B. I have copied the "space"
and did a replace on the column but then all the cells format as a date,
even if I format the column to text first. How can I do this and not have
the data change to a date?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Remove character at end of data

Suppose you have your data in Col A
Then in B11 type
=Left(A1,Len(A1)-1)
Format Col B as TEXT
Copy Col B, click on B1 and choose Edit|Paste Special|Values

"Paul B" wrote:

I have a column of data in the form of 1-1, 1-2, €¦ 1-123, it has a space at
the end of the numbers, not really a space, I can copy the "space" and paste
it in another cell and then use = code and I get a code of 160. how can I
get this out from behind all the data in column B. I have copied the "space"
and did a replace on the column but then all the cells format as a date,
even if I format the column to text first. How can I do this and not have
the data change to a date?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Remove character at end of data

You could use a helper column and then use a formula like:

=substitute(b1,char(160),"")
(and drag down the column)
to remove all the HTML non-breaking spaces.

Then select that column and do edit|copy
select the original column B and edit|paste special|Values
and delete the helper column.

or...

You could also toggle a Lotus 123 setting.
In xl2003 menus:
Tools|options|Transition tab|check "Transition formula entry"

Then select the range
Edit|replace
what: alt-0160 (hit and hold the alt key while you type 0160 using the number
pad)
with: (leave blank)

Then toggle that setting off.



Paul B wrote:

I have a column of data in the form of 1-1, 1-2, … 1-123, it has a space at
the end of the numbers, not really a space, I can copy the "space" and paste
it in another cell and then use = code and I get a code of 160. how can I
get this out from behind all the data in column B. I have copied the "space"
and did a replace on the column but then all the cells format as a date,
even if I format the column to text first. How can I do this and not have
the data change to a date?


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Remove character at end of data

Thanks that did it

"Dave Peterson" wrote in message
...
You could use a helper column and then use a formula like:

=substitute(b1,char(160),"")
(and drag down the column)
to remove all the HTML non-breaking spaces.

Then select that column and do edit|copy
select the original column B and edit|paste special|Values
and delete the helper column.

or...

You could also toggle a Lotus 123 setting.
In xl2003 menus:
Tools|options|Transition tab|check "Transition formula entry"

Then select the range
Edit|replace
what: alt-0160 (hit and hold the alt key while you type 0160 using the
number
pad)
with: (leave blank)

Then toggle that setting off.



Paul B wrote:

I have a column of data in the form of 1-1, 1-2, . 1-123, it has a space
at
the end of the numbers, not really a space, I can copy the "space" and
paste
it in another cell and then use = code and I get a code of 160. how can I
get this out from behind all the data in column B. I have copied the
"space"
and did a replace on the column but then all the cells format as a date,
even if I format the column to text first. How can I do this and not have
the data change to a date?


--

Dave Peterson



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Remove character at end of data

Which one?

I'm curious.

Paul B wrote:

Thanks that did it

"Dave Peterson" wrote in message
...
You could use a helper column and then use a formula like:

=substitute(b1,char(160),"")
(and drag down the column)
to remove all the HTML non-breaking spaces.

Then select that column and do edit|copy
select the original column B and edit|paste special|Values
and delete the helper column.

or...

You could also toggle a Lotus 123 setting.
In xl2003 menus:
Tools|options|Transition tab|check "Transition formula entry"

Then select the range
Edit|replace
what: alt-0160 (hit and hold the alt key while you type 0160 using the
number
pad)
with: (leave blank)

Then toggle that setting off.



Paul B wrote:

I have a column of data in the form of 1-1, 1-2, . 1-123, it has a space
at
the end of the numbers, not really a space, I can copy the "space" and
paste
it in another cell and then use = code and I get a code of 160. how can I
get this out from behind all the data in column B. I have copied the
"space"
and did a replace on the column but then all the cells format as a date,
even if I format the column to text first. How can I do this and not have
the data change to a date?


--

Dave Peterson


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,344
Default Remove character at end of data

Hi Dave,

They should both work!

--
Thanks,
Shane Devenshire


"Dave Peterson" wrote:

Which one?

I'm curious.

Paul B wrote:

Thanks that did it

"Dave Peterson" wrote in message
...
You could use a helper column and then use a formula like:

=substitute(b1,char(160),"")
(and drag down the column)
to remove all the HTML non-breaking spaces.

Then select that column and do edit|copy
select the original column B and edit|paste special|Values
and delete the helper column.

or...

You could also toggle a Lotus 123 setting.
In xl2003 menus:
Tools|options|Transition tab|check "Transition formula entry"

Then select the range
Edit|replace
what: alt-0160 (hit and hold the alt key while you type 0160 using the
number
pad)
with: (leave blank)

Then toggle that setting off.



Paul B wrote:

I have a column of data in the form of 1-1, 1-2, . 1-123, it has a space
at
the end of the numbers, not really a space, I can copy the "space" and
paste
it in another cell and then use = code and I get a code of 160. how can I
get this out from behind all the data in column B. I have copied the
"space"
and did a replace on the column but then all the cells format as a date,
even if I format the column to text first. How can I do this and not have
the data change to a date?

--

Dave Peterson


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Remove character at end of data

Yep.

I was curious about which technique the OP used.

The formula (either of them) or the edit|replace with the Lotus 123 setting
toggle.

ShaneDevenshire wrote:

Hi Dave,

They should both work!

--
Thanks,
Shane Devenshire

"Dave Peterson" wrote:

Which one?

I'm curious.

Paul B wrote:

Thanks that did it

"Dave Peterson" wrote in message
...
You could use a helper column and then use a formula like:

=substitute(b1,char(160),"")
(and drag down the column)
to remove all the HTML non-breaking spaces.

Then select that column and do edit|copy
select the original column B and edit|paste special|Values
and delete the helper column.

or...

You could also toggle a Lotus 123 setting.
In xl2003 menus:
Tools|options|Transition tab|check "Transition formula entry"

Then select the range
Edit|replace
what: alt-0160 (hit and hold the alt key while you type 0160 using the
number
pad)
with: (leave blank)

Then toggle that setting off.



Paul B wrote:

I have a column of data in the form of 1-1, 1-2, . 1-123, it has a space
at
the end of the numbers, not really a space, I can copy the "space" and
paste
it in another cell and then use = code and I get a code of 160. how can I
get this out from behind all the data in column B. I have copied the
"space"
and did a replace on the column but then all the cells format as a date,
even if I format the column to text first. How can I do this and not have
the data change to a date?

--

Dave Peterson


--

Dave Peterson


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove data that preceeds a character Ty Excel Worksheet Functions 6 October 17th 08 06:59 PM
How to remove character format under .csv? Eric Excel Discussion (Misc queries) 0 May 14th 08 01:49 PM
Remove ' character from copied excel cell to match data Syndrome Excel Discussion (Misc queries) 9 March 7th 07 05:18 PM
Remove character from imported data jimmxz Excel Discussion (Misc queries) 4 February 19th 07 06:13 PM
How to remove a character from the first index? dex Excel Discussion (Misc queries) 3 January 6th 06 05:33 AM


All times are GMT +1. The time now is 11:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"