How to Remove Dashes in Excel: Step-by-Step Guide (2024)

Is your Excel data full of unwanted characters (more particularly dashes)? That’s just alright. You might have to face this situation every once in a while 💁‍♀️

Especially, if you get to import data in Excel from External sources like the web or pdf files, etc.

There are many ways how you can remove dashes in Excel. No, not manually.

I will walk you through a couple of ways to automate dash removal in Excel. So let’s not waste any more time and jump right into the guide below 👇

How to remove dashes with Find and Replace

You might have guessed on this method already.

The first and easiest way to remove dashes from your Excel worksheet is by using the Find and Replace feature. Let’s do it here 🧐

The data in the image below has the names of some employees, along with their employee codes.

Employee code original data

Look into the data more carefully to see the dashes in between the employee codes. Can we just get rid of them? For that:

  1. Select the data from where the dashes are to be removed.
Selection of data with dashes

We are selecting the Cell range B2 to B7 (cells that contain the employee codes with dashes).

Do not select any data if you want to remove dashes from the whole spreadsheet ❌

Kasper Langmann, Microsoft Office Specialist
  1. Go to the Home tab > Find & Select > Replace.

Alternatively, you may use the keyboard shortcut: Control Key + H. This will launch the Find & Replace dialog box as follows:

The Find & Replace dialog box
  1. Type in a dash against the box for Find 🔎
Dash against Find text box
  1. Leave the box for Replace empty.
Leaving Replace empty

Technically, we are telling Excel to find dashes in the selected data. And then replace them with an empty string 🚀

In other words, we are telling Excel to simply remove all the dashes from the selected data.

  1. Click on Replace All, and there you go!
Dash removed

The employee codes have no more dashes to them. Isn’t that just too easy?

Remove dashes with the SUBSTITUTE function

Another convenient method to get rid of dashes in Excel is by using the SUBSTITUTE function.

Let’s remove the dashes from the employee codes in our example above using it.

Just like the name suggests, the SUBSTITUTE function substitutes (or replaces) the specified characters of any cell or text string with the new specified characters 💪

Kasper Langmann, Microsoft Office Specialist
  1. Write the SUBSTITUTE function as follows:

= SUBSTUTTE (B2

Writing the SUBSTITUTE function

The first argument of the SUBSTITUTE function refers to the cell that contains the text to be replaced.

We want to remove dashes from the content in Cell B2 so we have created a reference to it.

  1. Specify the old text to be substituted. We are writing it as “-“ (dash in double quotation marks).

= SUBSTUTTE (B2, “-“,

The old text to be replaced

Excel will only recognize the dash (-) as text when it is enclosed in double quotation marks 💭

Kasper Langmann, Microsoft Office Specialist
  1. Specify the new text (the text with which you want the dashes replaced).

= SUBSTUTTE (B2, “-“,””)

The new text

We don’t want to replace the dashes but remove them entirely. So we will enter empty double quotation marks (“”) as the new text.

  1. Hit Enter to get the following results.
Removing dashes

And there you go! We have the text of Cell B2 reproduced with no more dashes in between 💡

  1. Drag and drop the same formula to the whole list.
 The whole list

How to remove 2nd dash

Until now, we were dealing with scenarios where we wanted to remove all the dashes from our dataset.

But this scenario is somewhat different. This time, we only want to remove the second dash from each cell (not all the dashes) 2️⃣

To do that:

  1. Write the SUBSTITUTE function as follows:

= SUBSTUTTE (B2

Writing the SUBSTITUTE function

Referring to the cell that contains the text with dashes.

  1. Specify the old text to be substituted (dash in double quotation marks).

= SUBSTUTTE (B2, “-“,

The old text in Excel formula
  1. Specify the new text.

= SUBSTUTTE (B2, “-“,””,

The old text to be replaced

We will again set this argument to empty double quotation marks (“”) as we want the dash to be removed 🙈

  1. As the instance_num argument, write 2.

= SUBSTUTTE (B2, “-“,””, 2)

The instance number argument

The instance number tells which instance of the old text is to be replaced with the new text.

By setting the instance number to 2, we are telling Excel to replace the second dash only.

Pro Tip!

The instance number is only an optional argument 🚫

If omitted, the SUBSTITUTE function will replace all instances of the old text in the cell with the new text. Just like we did in the above section remove all the dashes from each cell.

  1. Hit Enter.
 The SUBSTITUTE formula

See that? Only the second dash from each employee code is removed.

  1. Drag and drop the same formula to the whole list.
The whole list

That’s it – Now what

With these easy (and efficient) tricks, you’re all set to steer your Excel spreadsheets clear of any unwanted dashes.

Let me tell you – using these methods you can not only remove dashes but most of the other redundant characters, too. 🎯

Just like the SUBSTITUTE function, there are so many more functions of Excel that you’d love to learn about.

Like the VLOOKUP, SUMIF, and IF functions (my all-time favorite from the Excel functions library).

Want to learn them already? Click here to enroll in my 30-minute free email course that will take you through these and many more Excel functions in no time.

Other resources

Okay! So, we’ve seen how to remove dashes in Excel. But do you know how to insert dashes and other special characters in Excel?

No? Learn that here in our blog on how to insert special characters and symbols in Excel.