How do I create a phone number format with only dashes and numbers

Anonymous
2018-11-14T14:48:05+00:00

I am trying to create a phone number format with only numbers and dashes.  I have a file with phone numbers formatted as (###) ###-####.  I want to reformat to ###-###-####.  I tried and the attached screen shot does not work.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Jim G 134K Reputation points MVP Volunteer Moderator
    2018-11-17T15:58:44+00:00

    This is so simple to do. No macros are needed.

    In the column next to the column you want to format, enter the phone number in the desired format and press return. Then press Control-e to invoke Flash Fill. The column will fill with the proper formatting.

    7 people found this answer helpful.
    0 comments No comments

16 additional answers

Sort by: Most helpful
  1. Anonymous
    2018-11-14T15:41:37+00:00

    Use

    000-000-0000

    or 

    ###-###-####

    If you may also have numbers without area codes, use

    [<=9999999]000-0000;000-000-0000

    etc.

    If that does not work, it is because the phone numbers are actually strings, entered with the parens - you will need to remove the parens, spaces, dashes, etc. after applying the formatting to have it all work.  When you enter a new number only type the ten digits.

    0 comments No comments
  2. Anonymous
    2018-11-14T15:47:15+00:00

    It's formatted wrong.

    Do the following:

    1. Open Format Column or  Cell
    2. Switch to Special and choose "phone"
    3. It will show as : [<=9999999]###-####;(###);###-#### as your screenshot above.
    4. In the type Box type this: [<=9999999]###-####;###-###-####

    Remove the ( )'s and add a  dash.

    If you want to have the number to be just series of number (like 1234567890) remove the last two dashes at far right.

    __________

    Disclaimer:

    The questions, discussions, opinions, replies & answers I create, are solely mine and mine alone and do not reflect upon my position as a Volunteer Moderator.

    0 comments No comments
  3. Anonymous
    2018-11-14T16:34:50+00:00

    I did as you suggested, but when I chick OK, the cell is not reformatted.

    0 comments No comments
  4. Anonymous
    2018-11-14T17:26:00+00:00

    The cell is not showing a re-formatted value because the entry is not a number. The formula bar will show the actual entry, and it should only be 10 digits. You need to re-format the cell and then re-enter the value: If you are processing a lot of cells, using Find and replace to remove the extra characters acts as a re-entry.

    0 comments No comments