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

Data Analysis

  • How to Create Column Chart in Excel
  • How to create Checklist in Excel
  • Conditional Formatting Data bars Examples in Excel
  • Example of COUNTIFS with variable table column in Excel
  • How to count table columns in Excel

References

  • Vlookup Examples in Excel
  • Basic INDEX MATCH approximate in Excel
  • How to use Excel TRANSPOSE Function
  • Two-column Lookup in Excel
  • How to use Excel INDIRECT Function

Data Validations

  • Excel Data validation require unique number
  • Excel Data validation with conditional list
  • Data validation must not exist in list
  • Excel Data validation specific characters only
  • Excel Data validation don’t exceed total

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

  • How to use Excel NOT Function
  • TRUE function: Description, Usage, Syntax, Examples and Explanation
  • Return blank if in Excel
  • SWITCH function: Description, Usage, Syntax, Examples and Explanation
  • How to use IFS function in Excel

Date Time

  • Convert decimal seconds to Excel time
  • Calculate time difference in hours as decimal value in Excel
  • NOW function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate project start date based on end date in Excel
  • Get first Monday before any date in Excel

Grouping

  • How to randomly assign data to groups in Excel
  • If cell contains one of many things in Excel
  • Running count group by n size in Excel
  • Group arbitrary text values in Excel
  • Group times into unequal buckets in Excel

General

  • AutoFit Column Width, AutoFit Row Height in Excel
  • Customize Ribbon In Excel
  • How to calculate percent of goal in Excel
  • Subtotal by invoice number in Excel
  • How to set or clear a print area in Excel Worksheet
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning