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 : How to remove trailing spaces ?


Dear Sir,

I have copied a block of references generated by another business system to
Excel 2002 worksheet.

All the references has 6 trailing spaces immediately after the pasting.

A B
PKHLA050______
PKHLA051______
PKHLA052______
PKHLA054
PKHLA055
PKHLA056
PKHLA057


May I know is there any formula I can enter at B1 and copy down eliminate
the trailing spaces.

I need to do this as VLOOKUP formula does not work with references that
have trailing spaces.


Kind Regards

Low

A36B58K641
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Excel 2002 : How to remove trailing spaces ?

use the TRIM() function. It removes trailing spaces.
--
Gary''s Student - gsnu200713


"Mr. Low" wrote:


Dear Sir,

I have copied a block of references generated by another business system to
Excel 2002 worksheet.

All the references has 6 trailing spaces immediately after the pasting.

A B
PKHLA050______
PKHLA051______
PKHLA052______
PKHLA054
PKHLA055
PKHLA056
PKHLA057


May I know is there any formula I can enter at B1 and copy down eliminate
the trailing spaces.

I need to do this as VLOOKUP formula does not work with references that
have trailing spaces.


Kind Regards

Low

A36B58K641

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 505
Default Excel 2002 : How to remove trailing spaces ?

Dear Gary,

Yes, It works by entering formula =TRIM(+A1) at B1.

Many thanks

Low

--
A36B58K641


"Gary''s Student" wrote:

use the TRIM() function. It removes trailing spaces.
--
Gary''s Student - gsnu200713


"Mr. Low" wrote:


Dear Sir,

I have copied a block of references generated by another business system to
Excel 2002 worksheet.

All the references has 6 trailing spaces immediately after the pasting.

A B
PKHLA050______
PKHLA051______
PKHLA052______
PKHLA054
PKHLA055
PKHLA056
PKHLA057


May I know is there any formula I can enter at B1 and copy down eliminate
the trailing spaces.

I need to do this as VLOOKUP formula does not work with references that
have trailing spaces.


Kind Regards

Low

A36B58K641

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 623
Default Excel 2002 : How to remove trailing spaces ?

And you don't need the plus sign in the function.

=trim(a1)

will work just as well and looks cleaner.

--
Regards,
Fred


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

Yes, It works by entering formula =TRIM(+A1) at B1.

Many thanks

Low

--
A36B58K641


"Gary''s Student" wrote:

use the TRIM() function. It removes trailing spaces.
--
Gary''s Student - gsnu200713


"Mr. Low" wrote:


Dear Sir,

I have copied a block of references generated by another business system
to
Excel 2002 worksheet.

All the references has 6 trailing spaces immediately after the pasting.

A B
PKHLA050______
PKHLA051______
PKHLA052______
PKHLA054
PKHLA055
PKHLA056
PKHLA057


May I know is there any formula I can enter at B1 and copy down eliminate
the trailing spaces.

I need to do this as VLOOKUP formula does not work with references that
have trailing spaces.


Kind Regards

Low

A36B58K641



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 505
Default Excel 2002 : How to remove trailing spaces ?

Hello Fred,

Thanks for your advice.

Low

--
A36B58K641


"Fred Smith" wrote:

And you don't need the plus sign in the function.

=trim(a1)

will work just as well and looks cleaner.

--
Regards,
Fred


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

Yes, It works by entering formula =TRIM(+A1) at B1.

Many thanks

Low

--
A36B58K641


"Gary''s Student" wrote:

use the TRIM() function. It removes trailing spaces.
--
Gary''s Student - gsnu200713


"Mr. Low" wrote:


Dear Sir,

I have copied a block of references generated by another business system
to
Excel 2002 worksheet.

All the references has 6 trailing spaces immediately after the pasting.

A B
PKHLA050______
PKHLA051______
PKHLA052______
PKHLA054
PKHLA055
PKHLA056
PKHLA057


May I know is there any formula I can enter at B1 and copy down eliminate
the trailing spaces.

I need to do this as VLOOKUP formula does not work with references that
have trailing spaces.


Kind Regards

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
Remove trailing spaces from multiple columns in Excel dcaissie Excel Worksheet Functions 8 May 16th 08 08:21 PM
REMOVING TRAILING SPACES Tris Excel Discussion (Misc queries) 5 August 29th 06 03:36 PM
How keep Leading/Trailing spaces when save in Excel? jorgejulio Excel Discussion (Misc queries) 0 August 1st 06 09:49 PM
remove trailing spaces les8 Excel Discussion (Misc queries) 4 January 20th 06 03:55 PM
how do I remove empty spaces trailing a text string? Need_Help Excel Worksheet Functions 2 June 7th 05 12:13 AM


All times are GMT +1. The time now is 10: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"