Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Error Bars in Excel
  • How To Remove Duplicates In Excel Column Or Row?
  • Number and Text Filters Examples in Excel
  • How To Load Analysis ToolPak in Excel
  • Excel Frequency Function Example

References

  • Count rows that contain specific values in Excel
  • Count unique text values with criteria
  • How to reference named range different sheet in Excel
  • Lookup entire row in Excel
  • How to use Excel MATCH Function

Data Validations

  • Excel Data validation exists in list
  • Excel Data validation whole percentage only
  • Excel Data validation date in specific year
  • Excel Data validation must begin with
  • Excel Data validation specific characters only

Replace one character with another in Excel

by

To replace or substitute all occurrences of one character with another character, you can use the SUBSTITUTE function.

Formula

=SUBSTITUTE(ref,old,new)

Explanation

In the example shown, the formula in C6 is:

=SUBSTITUTE(B6," ","-")

How this formula works

The SUBSTITUTE function is full automatic. All you need to do is supply “old text” and “new text”. SUBSTITUTE will replace every instance of the old text with the new text.

If you need to perform more than one replacement at the same time, you’ll need to nest multiple SUBSTITUTE functions. See the “clean telephone numbers” example linked below.

Post navigation

Next Post:

Create One-dimensional and Two-dimensional Array

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • IFNA function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel FALSE Function
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • AND function: Description, Usage, Syntax, Examples and Explanation
  • OR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Calculate expiration date in Excel
  • Get days, hours, and minutes between dates in Excel
  • Extract date from a date and time in Excel
  • Add decimal hours to time in Excel
  • How to calculate nth day of year in Excel

Grouping

  • How to randomly assign data to groups in Excel
  • Group times into 3 hour buckets in Excel
  • How to randomly assign people to groups in Excel
  • If cell contains one of many things in Excel
  • Group arbitrary text values in Excel

General

  • How to get Excel workbook path only
  • Advanced Number Formats in Excel
  • Transpose: Switch ‘Rows to Columns’ or ‘Columns to Rows’ in Excel
  • How to generate random number between two numbers in Excel
  • AutoFit Column Width, AutoFit Row Height in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning