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

Data Analysis

  • Get column name from index in Excel Table
  • How to combine 2 or more chart types in a single chart in Excel
  • How To Load Analysis ToolPak in Excel
  • How To Create Pareto Chart in Excel
  • Conditional Formatting Color Scales Examples in Excel

References

  • How to retrieve first match between two ranges in Excel
  • How to create dynamic named range with OFFSET in Excel
  • How to get last column number in range in Excel
  • Two-way lookup with VLOOKUP in Excel
  • INDEX function: Description, Usage, Syntax, Examples and Explanation

Data Validations

  • Data validation must not exist in list
  • Excel Data validation allow uppercase only
  • Excel Data validation date in specific year
  • How To Create Drop-down List in Excel
  • Excel Data validation with conditional list

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 TRUE Function
  • How to use IFS function in Excel
  • SWITCH function example in Excel
  • How to use Excel OR Function
  • Nested IF function example in Excel

Date Time

  • Add days exclude certain days of week in Excel
  • DAYS function: Description, Usage, Syntax, Examples and Explanation
  • ISOWEEKNUM function: Description, Usage, Syntax, Examples and Explanation
  • Count dates in current month in Excel
  • Get work hours between dates custom schedule in Excel

Grouping

  • If cell contains one of many things in Excel
  • Calculate conditional mode with criteria in Excel
  • Group numbers at uneven intervals in Excel
  • Map inputs to arbitrary values in Excel
  • How to randomly assign data to groups in Excel

General

  • Count cells that contain errors in Excel
  • How to get original number from percent change in Excel
  • Find Most Frequently Occurring Word in Excel Worksheet
  • How to calculate project complete percentage in Excel
  • How to generate random date between two dates in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning