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

Data Analysis

  • Understanding Pivot Tables in Excel
  • How to calculate average last N values in a table in Excel
  • Example of COUNTIFS with variable table column in Excel
  • How to count table columns in Excel
  • Move chart to a separate worksheet in Excel

References

  • How to get relative column numbers in a range in Excel
  • Perform case-sensitive Lookup in Excel
  • How to get address of named range in Excel
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions
  • How to use Excel MMULT Function

Data Validations

  • Excel Data validation must not contain
  • Excel Data validation allow weekday only
  • Excel Data validation whole percentage only
  • Excel Data validation no punctuation
  • Excel Data validation date in specific year

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

  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel XOR Function
  • IF, AND, OR and NOT Functions Examples in Excel
  • OR function: Description, Usage, Syntax, Examples and Explanation
  • Excel If, Nested If, And/Or Criteria Examples

Date Time

  • Display the current date in Excel
  • Calculate expiration date in Excel
  • How to calculate nth day of year in Excel
  • Convert date to month and year in Excel
  • How to calculate Quarter of Date in Excel

Grouping

  • Calculate conditional mode with criteria in Excel
  • Group arbitrary text values in Excel
  • How to randomly assign people to groups in Excel
  • Categorize text with keywords in Excel
  • Map inputs to arbitrary values in Excel

General

  • AutoFit Column Width, AutoFit Row Height in Excel
  • Find, Select, Replace and Go To Special in Excel
  • How to calculate percent variance in Excel
  • Check if multiple cells have same value with case sensitive in Excel
  • Freeze and Unfreeze Panes in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning