---
title: "Remove the dashes with SUBSTITUTE | PracticeExcel"
description: "Practice SUBSTITUTE in a live spreadsheet: remove the dashes from a phone number."
canonical_url: "https://practiceexcelonline.com/practice/substitute-textbefore-textafter/substitute-remove-characters"
locale: en
meta:
  "og:description": "Practice SUBSTITUTE in a live spreadsheet: remove the dashes from a phone number."
  "og:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Remove%2Bthe%2Bdashes%2Bwith%2BSUBSTITUTE%2Cdescription_~UHJhY3RpY2UgU1VCU1RJVFVURSBpbiBhIGxpdmUgc3ByZWFkc2hlZXQ6IHJlbW92ZSB0aGUgZGFzaGVzIGZyb20gYSBwaG9uZSBudW1iZXIu%2Ceyebrow_~U1VCU1RJVFVURSwgVEVYVEJFRk9SRSBhbmQgVEVYVEFGVEVS%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiUGhvbmUgYXMgdHlwZWQiLCJQaG9uZSJdfSx7Im4iOjIsImNlbGxzIjpbIjAyMC03OTQ2LTAwMTgiLCIiXX1dLCJ0YXJnZXQiOlsxLDFdfX0%2Cp_Ii9wcmFjdGljZS9zdWJzdGl0dXRlLXRleHRiZWZvcmUtdGV4dGFmdGVyL3N1YnN0aXR1dGUtcmVtb3ZlLWNoYXJhY3RlcnMi%2Cs_sLhW8xAo1cv1sWoo.png"
  "og:image:height": "600"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Remove the dashes with SUBSTITUTE | PracticeExcel"
  "twitter:image": "https://practiceexcelonline.com/_og/d/c_Page%2Ctitle_Remove%2Bthe%2Bdashes%2Bwith%2BSUBSTITUTE%2Cdescription_~UHJhY3RpY2UgU1VCU1RJVFVURSBpbiBhIGxpdmUgc3ByZWFkc2hlZXQ6IHJlbW92ZSB0aGUgZGFzaGVzIGZyb20gYSBwaG9uZSBudW1iZXIu%2Ceyebrow_~U1VCU1RJVFVURSwgVEVYVEJFRk9SRSBhbmQgVEVYVEFGVEVS%2Csite_practiceexcel%2Cprops_eyJncmlkIjp7ImNvbHMiOlsiQSIsIkIiXSwicm93cyI6W3sibiI6MSwiY2VsbHMiOlsiUGhvbmUgYXMgdHlwZWQiLCJQaG9uZSJdfSx7Im4iOjIsImNlbGxzIjpbIjAyMC03OTQ2LTAwMTgiLCIiXX1dLCJ0YXJnZXQiOlsxLDFdfX0%2Cp_Ii9wcmFjdGljZS9zdWJzdGl0dXRlLXRleHRiZWZvcmUtdGV4dGFmdGVyL3N1YnN0aXR1dGUtcmVtb3ZlLWNoYXJhY3RlcnMi%2Cs_sLhW8xAo1cv1sWoo.png"
---

> Index of every page on this site: [llms.txt](https://practiceexcelonline.com/llms.txt)

# **Remove the dashes with SUBSTITUTE**

1.
2.
3.

Step 1 of 3

**SUBSTITUTE** swaps one text for another wherever it appears: =SUBSTITUTE(text, old\_text, new\_text). It works on every match, not just the first.

Click **Continue** when you're ready.

Already know it? Type the formula straight into B2.

B2fx

|  | A | B | C | D | E | F |
| --- | --- | --- | --- | --- | --- | --- |
| 1 | Phone as typed | Phone |  |  |  | |
| 2 | 020-7946-0018 |  |  |  |  | |
| 3 |  |  |  |  |  | |
| 4 |  |  |  |  |  | |
| 5 |  |  |  |  |  | |
| 6 |  |  |  |  |  | |
| 7 |  |  |  |  |  | |
| 8 |  |  |  |  |  | |

Need help?

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://practiceexcelonline.com/#identity","@type":"Organization","name":"PracticeExcel","url":"https://practiceexcelonline.com/","logo":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/#website","@type":"WebSite","inLanguage":"en-US","name":"PracticeExcel","url":"https://practiceexcelonline.com/","alternateName":["Practice Excel Online","PracticeExcelOnline.com"],"publisher":{"@id":"https://practiceexcelonline.com/#identity"},"workTranslation":{"@id":"https://excelopgaver.dk/#website"}},{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/substitute-remove-characters#webpage","description":"Practice SUBSTITUTE in a live spreadsheet: remove the dashes from a phone number.","name":"Remove the dashes with SUBSTITUTE","url":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/substitute-remove-characters","@type":["WebPage","FAQPage"],"breadcrumb":{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/substitute-remove-characters#breadcrumb"},"isPartOf":{"@id":"https://practiceexcelonline.com/#website"},"mainEntity":[{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/substitute-remove-characters#/schema/question/1"}],"potentialAction":[{"@type":"ReadAction","target":["https://practiceexcelonline.com/practice/substitute-textbefore-textafter/substitute-remove-characters"]}],"primaryImageOfPage":{"@id":"https://practiceexcelonline.com/#logo"}},{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/substitute-remove-characters#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://practiceexcelonline.com","position":1},{"@type":"ListItem","name":"Excel practice exercises","item":"https://practiceexcelonline.com/practice","position":2},{"@type":"ListItem","name":"SUBSTITUTE, TEXTBEFORE and TEXTAFTER","item":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter","position":3},{"@type":"ListItem","name":"Remove the dashes with SUBSTITUTE","position":4}]},{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/substitute-remove-characters#/schema/question/1","@type":"Question","inLanguage":"en-US","name":"How do I remove a character from a cell in Excel?","acceptedAnswer":{"@type":"Answer","text":"=SUBSTITUTE(A2,\"-\",\"\") removes every dash from A2. Replace the \"-\" with whatever character you want gone."}},{"@id":"https://practiceexcelonline.com/practice/substitute-textbefore-textafter/substitute-remove-characters#/schema/learning-resource/1","@type":"LearningResource","description":"Practice SUBSTITUTE in a live spreadsheet: remove the dashes from a phone number.","educationalLevel":"beginner","isAccessibleForFree":true,"learningResourceType":"exercise","name":"Remove the dashes with SUBSTITUTE","teaches":"SUBSTITUTE, TEXTBEFORE and TEXTAFTER"},{"@id":"https://practiceexcelonline.com/#logo","@type":"ImageObject","caption":"PracticeExcel","contentUrl":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png","inLanguage":"en-US","url":"https://practiceexcelonline.com/brand/practiceexcel/icon-512.png"}]}
```

## Sitemap

See the full [sitemap](https://practiceexcelonline.com/sitemap.md) for all pages.
