adding a ' to every cell

schimmel1977

New Member
Joined
Sep 6, 2005
Messages
22
I have a column with a bunch of 9 digit numbers (e.g. 05-456-3432) I need to remove the dashes but when I do excel automatically removes the zero in the front of my nine digit number. Is there a way to add a ' to the begining of each cell without actually having to type a ' over and over. Thanks for any help.
 

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.

Reddist

New Member
Joined
Jul 28, 2005
Messages
12
You can establish the range of cells that you need to do this in, then for each cell in that range,

cell.value = "'" & cell.value

... that should add a ' infront of each phone number.

Good luck!
 

Forum statistics

Threads
1,175,648
Messages
5,898,646
Members
434,720
Latest member
Alice88

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
Top