Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 505
Default Excel 2002 : Why =Trim () formula not working ?

Dear Sir,

I copied a list of reference number in HTML format from the MS Outlook and
paste it to Excel worksheet. After that I separated it into columns by using
Data Text t to Columns function.

A B
1 BJH3675
2 BGB1056
3 BHH9444
4 BJH978
5 BFU7095
6 BFU3422
7 BFG9144
8 BFN3659
9 BFN3756


After separation the data in B is in text format.

I find that all the reference number in column B has 4 leading spaces.

I tried to remove these empty spacing by using =TRIM( ) or =TRIM(CLEAN( )),
but it does not work .

May I know why this could happen and how to overcome this problem

Thanks

Low


--
A36B58K641
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Excel 2002 : Why =Trim () formula not working ?

try:

in column C:

=SUBSTITUTE(B1,CHAR(160),"")

"Mr. Low" wrote:

Dear Sir,

I copied a list of reference number in HTML format from the MS Outlook and
paste it to Excel worksheet. After that I separated it into columns by using
Data Text t to Columns function.

A B
1 BJH3675
2 BGB1056
3 BHH9444
4 BJH978
5 BFU7095
6 BFU3422
7 BFG9144
8 BFN3659
9 BFN3756


After separation the data in B is in text format.

I find that all the reference number in column B has 4 leading spaces.

I tried to remove these empty spacing by using =TRIM( ) or =TRIM(CLEAN( )),
but it does not work .

May I know why this could happen and how to overcome this problem

Thanks

Low


--
A36B58K641

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,081
Default Excel 2002 : Why =Trim () formula not working ?

Press Ctrl-H
Click in the Find What line , then hold down the Alt key and use the numeric
keypad to enter 0160.
Make sure the Replace With box is empty
Click Replace All

"Mr. Low" wrote:

Dear Sir,

I copied a list of reference number in HTML format from the MS Outlook and
paste it to Excel worksheet. After that I separated it into columns by using
Data Text t to Columns function.

A B
1 BJH3675
2 BGB1056
3 BHH9444
4 BJH978
5 BFU7095
6 BFU3422
7 BFG9144
8 BFN3659
9 BFN3756


After separation the data in B is in text format.

I find that all the reference number in column B has 4 leading spaces.

I tried to remove these empty spacing by using =TRIM( ) or =TRIM(CLEAN( )),
but it does not work .

May I know why this could happen and how to overcome this problem

Thanks

Low


--
A36B58K641

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Excel 2002 : Why =Trim () formula not working ?

You can check what the spurious characters are by =CODE(LEFT(A1))
Other contributors have suggested a replacement of CHAR(160), but the CODE
function will let you see whether it is 160, and if not what it is.
--
David Biddulph

"Mr. Low" wrote in message
...
Dear Sir,

I copied a list of reference number in HTML format from the MS Outlook and
paste it to Excel worksheet. After that I separated it into columns by
using
Data Text t to Columns function.

A B
1 BJH3675
2 BGB1056
3 BHH9444
4 BJH978
5 BFU7095
6 BFU3422
7 BFG9144
8 BFN3659
9 BFN3756


After separation the data in B is in text format.

I find that all the reference number in column B has 4 leading spaces.

I tried to remove these empty spacing by using =TRIM( ) or
=TRIM(CLEAN( )),
but it does not work .

May I know why this could happen and how to overcome this problem

Thanks

Low


--
A36B58K641



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 505
Default Excel 2002 : Why =Trim () formula not working ?

Hello Duke,

Many thanks for your special formula to solve the problem.

It works out well.

Low

--
A36B58K641


"Duke Carey" wrote:

Press Ctrl-H
Click in the Find What line , then hold down the Alt key and use the numeric
keypad to enter 0160.
Make sure the Replace With box is empty
Click Replace All

"Mr. Low" wrote:

Dear Sir,

I copied a list of reference number in HTML format from the MS Outlook and
paste it to Excel worksheet. After that I separated it into columns by using
Data Text t to Columns function.

A B
1 BJH3675
2 BGB1056
3 BHH9444
4 BJH978
5 BFU7095
6 BFU3422
7 BFG9144
8 BFN3659
9 BFN3756


After separation the data in B is in text format.

I find that all the reference number in column B has 4 leading spaces.

I tried to remove these empty spacing by using =TRIM( ) or =TRIM(CLEAN( )),
but it does not work .

May I know why this could happen and how to overcome this problem

Thanks

Low


--
A36B58K641



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 505
Default Excel 2002 : Why =Trim () formula not working ?

Hello Toppers,

Many thanks for your special formula to solve the problem.

It works out well.

Low


--
A36B58K641


"Toppers" wrote:

try:

in column C:

=SUBSTITUTE(B1,CHAR(160),"")

"Mr. Low" wrote:

Dear Sir,

I copied a list of reference number in HTML format from the MS Outlook and
paste it to Excel worksheet. After that I separated it into columns by using
Data Text t to Columns function.

A B
1 BJH3675
2 BGB1056
3 BHH9444
4 BJH978
5 BFU7095
6 BFU3422
7 BFG9144
8 BFN3659
9 BFN3756


After separation the data in B is in text format.

I find that all the reference number in column B has 4 leading spaces.

I tried to remove these empty spacing by using =TRIM( ) or =TRIM(CLEAN( )),
but it does not work .

May I know why this could happen and how to overcome this problem

Thanks

Low


--
A36B58K641

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 505
Default Excel 2002 : Why =Trim () formula not working ?

Hello David,

Thank you for the special formula for error testing.

Best Regards

Low


--
A36B58K641


"David Biddulph" wrote:

You can check what the spurious characters are by =CODE(LEFT(A1))
Other contributors have suggested a replacement of CHAR(160), but the CODE
function will let you see whether it is 160, and if not what it is.
--
David Biddulph

"Mr. Low" wrote in message
...
Dear Sir,

I copied a list of reference number in HTML format from the MS Outlook and
paste it to Excel worksheet. After that I separated it into columns by
using
Data Text t to Columns function.

A B
1 BJH3675
2 BGB1056
3 BHH9444
4 BJH978
5 BFU7095
6 BFU3422
7 BFG9144
8 BFN3659
9 BFN3756


After separation the data in B is in text format.

I find that all the reference number in column B has 4 leading spaces.

I tried to remove these empty spacing by using =TRIM( ) or
=TRIM(CLEAN( )),
but it does not work .

May I know why this could happen and how to overcome this problem

Thanks

Low


--
A36B58K641




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
Excel 2002: Vlookup formula not working Mr. Low Excel Discussion (Misc queries) 3 June 5th 07 02:49 PM
hyperlinks not working in excel 2002 SP3 Roundy Excel Discussion (Misc queries) 0 July 7th 05 09:40 PM
Excel trim not working Kharpo7 Excel Discussion (Misc queries) 5 June 21st 05 12:53 AM
Excel 2002 not working Help IN Nebraska. Setting up and Configuration of Excel 2 December 22nd 04 10:29 AM
I can't seem to use RTRIM or LTRIM in Excel 2002. I want to trim. Pam New Users to Excel 3 December 2nd 04 12:08 AM


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

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

About Us

"It's about Microsoft Excel"