Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2013, 12:55 AM
s7y s7y is offline Deleting a "character" Windows 7 32bit Deleting a "character" Office 2010 32bit
Advanced Beginner
Deleting a "character"
 
Join Date: May 2012
Posts: 38
s7y is on a distinguished road
Default Deleting a "character"

Hello again everybody,



in cells A1:A45 I want to paste a text that comes from an email. I've formatted the column as text. This is how the text that I want to paste looks like:

-ML/N

but when I paste it this is what I get

'-ML/N

I am using the following formula to extract a specific text from a line (thank you again Catalin):

=IFERROR(LEFT(SUBSTITUTE(A1;LEFT(A1;FIND("/";A1));"");FIND("/";SUBSTITUTE(A1;LEFT(A1;FIND("/";A1));""))-1);"")

At this point the cells that should be blank contain the apostophe.

Is there a way to eliminate this?

Thank you all
Reply With Quote
  #2  
Old 06-05-2013, 06:09 AM
Catalin.B Catalin.B is offline Deleting a "character" Windows Vista Deleting a "character" Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, Romānia
Posts: 386
Catalin.B is on a distinguished road
Default

You mean you actually see in the cell that apostrophe?
The normal behaviour of excel, when user starts typing the sign "-" minus, is to treat what folows as a formula, and automatically places the "=" equal sign before user entries. (after exiting the cell) To avoid this default behaviour, and to "tell" excel that you want to type a text string in that cell, just start typing with an apostrophe folowed by your text.
The nice part for this method of typing text, is that you cannot really see in the cell the apostrophe, ONLY in the formula bar! It can be seen in the cell only in cell edit mode.
If you can see that in the cell and that cell is not in edit mode, well, that is a problem.
You can try to remove it with SUBSTITUTE function, which completes your formula:
=SUBSTITUTE(IFERROR(LEFT(SUBSTITUTE(A1;LEFT(A1;FIN D("/";A1));"");FIND("/";SUBSTITUTE(A1;LEFT(A1;FIND("/";A1));""))-1);"");"'";"")
Reply With Quote
  #3  
Old 06-05-2013, 07:52 AM
s7y s7y is offline Deleting a "character" Windows 7 32bit Deleting a "character" Office 2010 32bit
Advanced Beginner
Deleting a "character"
 
Join Date: May 2012
Posts: 38
s7y is on a distinguished road
Default

thank you very much again
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
the character "v" when typed acts like ctrl-v. jim redfield Word 1 09-22-2012 05:19 AM
Deleting a "character" Deleting duplicate emails - where is "table type view"? PaulNic Outlook 1 08-14-2011 10:08 PM
Outlook "character" problem noidea Outlook 1 04-05-2011 06:48 PM
"unknown error when deleting emails" jswisher Outlook 1 09-24-2010 04:13 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft