how to add a "+" to a number in a cell

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

I need to change a lot of phone-numbers in my Excel-sheet, by adding a " + "
to the country prefix.
How do I do that?
When I use "Search" / "Find", and write the paragraphs " + * " in the
replace box, it erase the whole number instead of adding the "+".. Which
wasn’t what I was looking for …
 
select the cells and run this macro:

Sub plus_it()
For Each r In Selection
r.NumberFormat = "@"
r.Value = "+" & r.Value
Next
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top