Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Remove Trailing Apostrophe

I know how to remove leading apostrophes but I can't figure out how to remove
trailing apostrophes but still leave a number as text.

For example, I have a number like 018" in my spreadsheet. Of course, it is
actually " 018" when you go to edit the cell. I want to be able to remove
the " after the 8 but leave the cell as " 018.

My leading apostrophe macro doesn't work and if I use a find and replace
command, it removes both apostrophes and leaves me with 18 as the cell value.

What am I missing? Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Remove Trailing Apostrophe

Put this formula in a helper column:

=LEFT(A1,LEN(A1)-1)

and copy down the column. Then highlight all the cells with the
formula in, click <copy, then Edit | Paste Special | Values (check) |
OK, then <Enter. This will fix the values, so that you could delete
the original column of data you had.

Incidentally, although you refer to the symbol as an apostrophe ('),
what you actually used in your example were quotes (").

Hope this helps.

Pete

On Aug 10, 12:18 am, Dave P wrote:
I know how to remove leading apostrophes but I can't figure out how to remove
trailing apostrophes but still leave a number as text.

For example, I have a number like 018" in my spreadsheet. Of course, it is
actually " 018" when you go to edit the cell. I want to be able to remove
the " after the 8 but leave the cell as " 018.

My leading apostrophe macro doesn't work and if I use a find and replace
command, it removes both apostrophes and leaves me with 18 as the cell value.

What am I missing? Thanks



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
how to remove the apostrophe Tiffany Excel Discussion (Misc queries) 3 April 17th 07 09:54 AM
Excel 2002 : How to remove trailing spaces ? Mr. Low Excel Discussion (Misc queries) 4 April 6th 07 04:26 PM
'09:00AM trying to get remove the apostrophe Kazza Excel Discussion (Misc queries) 1 April 25th 06 10:57 AM
remove trailing spaces les8 Excel Discussion (Misc queries) 4 January 20th 06 03:55 PM
Remove apostrophe Pat Excel Worksheet Functions 2 September 11th 05 06:27 PM


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