Hiding the leading apostrophes after copying data to excel

akashsen

New Member
Joined
Jul 27, 2011
Messages
4
Hello,

Whenever I paste some data having leading apostrophes to Excel worksheet from a clipboard or after copying it from notepad, the leading apostrophe doesn't get hidden. Any solution available ?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Hello,

Whenever I paste some data having leading apostrophes to Excel worksheet from a clipboard or after copying it from notepad, the leading apostrophe doesn't get hidden. Any solution available ?
Also when I double click any cell which has a leading apostrophe visible, they get hidden, but since I have huge amount of data copied I can't do this operation for all the cells.
 
Upvote 0
If the apostrohes are always in the same position you could use Text to Columns. Go to Data tab, text to columns, delimit, select other and put in ', then finish. This should move all the other text into a the next cell.

If there are no other apostrohes elsewhere in the cell range then you could highlight the range, click CTRL + H, and replace ' with blank, replace all. This would remove all the apostrophies in the range, so it wouldn't be the best option if you ONLY want to remove the leading ones.
 
Upvote 0
If the apostrohes are always in the same position you could use Text to Columns. Go to Data tab, text to columns, delimit, select other and put in ', then finish. This should move all the other text into a the next cell.

If there are no other apostrohes elsewhere in the cell range then you could highlight the range, click CTRL + H, and replace ' with blank, replace all. This would remove all the apostrophies in the range, so it wouldn't be the best option if you ONLY want to remove the leading ones.
Thnx for the quick reply.. but the problem with your solution is that it deletes any leading zeroes that I have in a cell, which I need to preserve.
 
Upvote 0
can you provide an example. eg is it **000 in each cell?

Try =SUBSTITUTE(cell,"*","")
 
Last edited:
Upvote 0
<table style="width: 419px; height: 212px;" border="0" cellpadding="0" cellspacing="0"><col style="width: 93pt;" width="124"> <tbody><tr style="height: 15pt;" height="20"> <td style="height: 15pt; width: 93pt;" width="124" height="20">Thnx a lot, Substitute function worked great...
</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">
</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">
</td> </tr> <tr style="height: 15pt;" height="20"> <td style="height: 15pt;" height="20">
</td></tr><tr style="height: 15pt;" height="20"><td style="height: 15pt;" height="20">
</td></tr><tr style="height: 15pt;" height="20"><td style="height: 15pt;" height="20">
</td></tr><tr style="height: 15pt;" height="20"><td style="height: 15pt;" height="20">
</td></tr><tr style="height: 15pt;" height="20"><td style="height: 15pt;" height="20">
</td> </tr> </tbody></table>
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top