search
HomeTopicsexcel4 tips for using the substitute function in Excel function learning

In the previous article "Practical Excel Skills Sharing: Using Pivot Tables and VLOOKUP Functions to Analyze Accounts Receivable", we learned about using Excel pivot tables and VLOOKUP functions to analyze accounts receivable method of analysis. The following article will talk about how to use the substitute function. Come and collect it and learn it!

4 tips for using the substitute function in Excel function learning

First let’s take a look at the usage of the substitute function. The substitute function is somewhat similar to the find and replace command in excel, but it is more flexible and easy to use.

Thesubstitute function is a text search function, which searches for a certain character and then replaces it with another character.

We use vernacular to simply understand the usage of the substitute function: Substitute (text, old text, new text, replace from which number) .

Case 1: Basic usage skills of the Substitute function

How to use the function substitute, we use a simple case to understand. Upgrade the model. If the upgrade rule starts with model A, change all models to start with B. The effect is shown in column D:

4 tips for using the substitute function in Excel function learning

The formula in cell D2 is: =SUBSTITUTE(C2,"A","B")

That is, use the Substitute function to replace "A" with "B".

4 tips for using the substitute function in Excel function learning

Case 2: Substitute function in excel hides the middle four digits of the mobile phone number

4 tips for using the substitute function in Excel function learning

##C2 The cell formula is:

=SUBSTITUTE(B2,MID(B2,4,4),"****")

Use MID to extract the middle four digits of the mobile phone number, and then use Substitute The function replaces it with four

*.

4 tips for using the substitute function in Excel function learning

Case 3: substitute function substitution case: counting the number of people on duty

4 tips for using the substitute function in Excel function learning

C2 cell The formula is:

=LEN(B2)-LEN(SUBSTITUTE(B2,",","")) 1

First use the LEN function to count the Substitute function to replace the commas between the persons on duty The length of the string after deletion. By using the string length in cell B2 - removing the comma, the string length is 1, you can count the number of people on duty.

4 tips for using the substitute function in Excel function learning

Case 4: Use Substitute function to calculate sales total

4 tips for using the substitute function in Excel function learning

D11 cell formula For:

=SUMPRODUCT(SUBSTITUTE(D2:D10,"元","")*1)&"元"

##SUBSTITUTE(D2:D10,"元", "")

means to replace all "yuan" in column D with null values, and finally multiply by 1 to convert the text into a numerical value. Reuse the SUMPRODUCT function to calculate the sum. Finally, use the text connector to add "yuan" and add the unit.

4 tips for using the substitute function in Excel function learning#Through the above four cases, I believe that friends have learned how to use the function substitute.

Related learning recommendations:

excel tutorial

The above is the detailed content of 4 tips for using the substitute function in Excel function learning. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:部落窝教育. If there is any infringement, please contact admin@php.cn delete
MEDIAN formula in Excel - practical examplesMEDIAN formula in Excel - practical examplesApr 11, 2025 pm 12:08 PM

This tutorial explains how to calculate the median of numerical data in Excel using the MEDIAN function. The median, a key measure of central tendency, identifies the middle value in a dataset, offering a more robust representation of central tenden

Google Spreadsheet COUNTIF function with formula examplesGoogle Spreadsheet COUNTIF function with formula examplesApr 11, 2025 pm 12:03 PM

Master Google Sheets COUNTIF: A Comprehensive Guide This guide explores the versatile COUNTIF function in Google Sheets, demonstrating its applications beyond simple cell counting. We'll cover various scenarios, from exact and partial matches to han

Excel shared workbook: How to share Excel file for multiple usersExcel shared workbook: How to share Excel file for multiple usersApr 11, 2025 am 11:58 AM

This tutorial provides a comprehensive guide to sharing Excel workbooks, covering various methods, access control, and conflict resolution. Modern Excel versions (2010, 2013, 2016, and later) simplify collaborative editing, eliminating the need to m

How to convert Excel to JPG - save .xls or .xlsx as image fileHow to convert Excel to JPG - save .xls or .xlsx as image fileApr 11, 2025 am 11:31 AM

This tutorial explores various methods for converting .xls files to .jpg images, encompassing both built-in Windows tools and free online converters. Need to create a presentation, share spreadsheet data securely, or design a document? Converting yo

Excel names and named ranges: how to define and use in formulasExcel names and named ranges: how to define and use in formulasApr 11, 2025 am 11:13 AM

This tutorial clarifies the function of Excel names and demonstrates how to define names for cells, ranges, constants, or formulas. It also covers editing, filtering, and deleting defined names. Excel names, while incredibly useful, are often overlo

Standard deviation Excel: functions and formula examplesStandard deviation Excel: functions and formula examplesApr 11, 2025 am 11:01 AM

This tutorial clarifies the distinction between standard deviation and standard error of the mean, guiding you on the optimal Excel functions for standard deviation calculations. In descriptive statistics, the mean and standard deviation are intrinsi

Square root in Excel: SQRT function and other waysSquare root in Excel: SQRT function and other waysApr 11, 2025 am 10:34 AM

This Excel tutorial demonstrates how to calculate square roots and nth roots. Finding the square root is a common mathematical operation, and Excel offers several methods. Methods for Calculating Square Roots in Excel: Using the SQRT Function: The

Google Sheets basics: Learn how to work with Google SpreadsheetsGoogle Sheets basics: Learn how to work with Google SpreadsheetsApr 11, 2025 am 10:23 AM

Unlock the Power of Google Sheets: A Beginner's Guide This tutorial introduces the fundamentals of Google Sheets, a powerful and versatile alternative to MS Excel. Learn how to effortlessly manage spreadsheets, leverage key features, and collaborate

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!