List Your Business in Our Directory Now! 

How to Add Dashes in Excel

Written by:

Last updated:

How to Add Dashes in Excel

Are you working with a long list of numbers or dates in Microsoft Excel and need to make them easier to read? One quick and effective way to do this is by adding dashes between certain characters. Whether you want to separate area codes in phone numbers, denote different parts of a date, or create a visual break in a serial number, learning how to add dashes in Excel can save you time and make your data more organized. In this article, we’ll walk you through three simple methods for adding dashes in Excel that work for both Windows and Mac users.

Method 1: Using the Ampersand (&) Symbol

The first and simplest method for adding dashes in Excel involves using the ampersand (&) symbol. This symbol is typically used to join together different text strings, but it can also be used to add dashes in between characters. Here’s how:

Step 1:

Select the cell where you want the dashed text to appear.

Step 2:

Type an equal sign (=) in the formula bar and then select the cell or cells that contain the text you want to add dashes to.

Step 3:

Type in the following formula:

= SUBSTITUTE(A1,"","-")

Make sure to replace ‘A1’ with the appropriate cell reference for your data.

Step 4:

Press enter to apply the formula to the selected cell(s). The dashes will now appear between the characters in your text.



Method 2: Using the TEXT Function

If you’d like to add dashes to specific parts of your text, like dates or phone numbers, you can use Excel’s TEXT function. This function allows you to format data in a variety of ways, including adding symbols like dashes. Here’s how:

Step 1:

Select the cell where you want the formatted text to appear.

Step 2:

Type in the following formula:

=TEXT(A1,"0000-00-00")

Replace ‘A1’ with the appropriate cell reference for your data. The specific formatting code “0000-00-00” adds dashes to a date in the format of year-month-day, but you can adjust this code to suit your needs.

Step 3:

Press enter to apply the formula to the selected cell(s). The text will now appear with dashes in the specified places.



Method 3: Using the Find and Replace Tool

If you have a large amount of data you want to add dashes to, you can use Excel’s Find and Replace tool to quickly make the changes. Here’s how:

Step 1:

Select the range of cells you want to modify.

Step 2:

Press ‘Ctrl + H’ or go to the ‘Home’ tab and click ‘Find & Select’ > ‘Replace’.

Step 3:

In the ‘Find what’ field, enter the text you want to add dashes to.

Step 4:

In the ‘Replace with’ field, enter the same text but with dashes added in the relevant places. For example, if your original text was “123456789”, you might type “123-456-789”.

Step 5:

Click ‘Replace All’ to apply the changes to all instances of the selected text.

Whether you need to add dashes to a few cells or thousands, these three methods will make the task quick and painless. Try them out and see how they can improve the accuracy and readability of your Excel data.

Tips for Adding Dashes in Excel

Here are a few additional tips to keep in mind as you work with adding dashes to your Excel data:

Be consistent

If you’re adding dashes to cells with similar data (like phone numbers), make sure you’re adding dashes in the same places for each cell. This will give your data a more uniform and professional look.

Use other symbols as needed

Dashes aren’t the only symbol you can use to visually separate parts of your data. Depending on your needs, you may want to use other symbols like periods, slashes, or spaces. Just be sure to use them consistently.

Save time with conditional formatting

If you have a lot of data you need to visually separate, you can use Excel’s conditional formatting feature to automatically apply formatting (like dashes) based on certain criteria. For example, you could use conditional formatting to add dashes to all phone numbers in your data automatically.

What to do if your dashes aren’t working

If you’re using one of the methods above and your dashes aren’t showing up correctly, here are a few things you can try:

Check your formula’s syntax

Make sure you’ve entered your formula or formatting code correctly, with the appropriate syntax and cell references. Even one small mistake can prevent your dashes from showing up.

Make sure your cells are formatted correctly

Dashes won’t show up if your cells aren’t formatted correctly (for example, if you’re trying to add dashes to a cell formatted as a number). Make sure your cells are formatted in a way that allows dashes to be displayed.

Check for leading or trailing spaces

If there are any leading or trailing spaces in your cells, they may interfere with the display of your dashes. Use the TRIM formula to remove any extra whitespace from your cells.

By keeping these tips in mind and troubleshooting any issues that arise, you can successfully add dashes to your Excel data and make it more organized and visually appealing.

FAQs About Adding Dashes in Excel

Here are answers to some common questions you may have about adding dashes to your Excel data:

What is the purpose of adding dashes to Excel data?

Adding dashes (or other visual separators) to your Excel data can make it easier to read and understand. Dashes can help break up long strings of numbers or letters into more manageable segments, making it simpler to parse and analyze your data.

Can I add dashes to date formats?

Absolutely! In fact, adding dashes to certain parts of dates (like years, months, and days) can make your data more visually appealing and easier to read. You can use the TEXT function (as outlined in Method 2 above) to format dates with dashes in the appropriate places.

What symbols can I use besides dashes?

While dashes are a popular symbol for separating parts of data in Excel, you can also use other symbols like periods, slashes, or spaces. The key is to be consistent and use the same symbol (or symbols) across all relevant cells or columns.

Can I use conditional formatting to add dashes?

Yes! Conditional formatting is a powerful feature in Excel that allows you to automatically apply formatting (like adding dashes) based on certain criteria. This can be a great time-saver if you have a lot of data you need to visually separate.

What if I want to add dashes to specific parts of my data?

You can use the TEXT function (as outlined in Method 2 above) to add dashes (or other symbols) to specific parts of your data. For example, you could format phone numbers to display as (###) ###-####, or format dates to show up as 01-01-2022.

Featured Companies

  • Learn PowerPoint

    Explore the world of Microsoft PowerPoint with LearnPowerpoint.io, where we provide tailored tutorials and valuable tips to transform your presentation skills and clarify PowerPoint for enthusiasts and professionals alike.

    Learn PowerPoint
  • Learn Word

    Your ultimate guide to mastering Microsoft Word! Dive into our extensive collection of tutorials and tips designed to make Word simple and effective for users of all skill levels.

    Learn Word
  • Resultris Marketing

    Boost your brand's online presence with Resultris Content Marketing Subscriptions. Enjoy high-quality, on-demand content marketing services to grow your business.

    Resultris Marketing

Other Categories

Expand Your Market with a Listing in Our Excel-Focused Directory!