As we all know, Excel has very powerful data processing capabilities, including text processing. Today, the leader will share with you the meaning and application of our commonly used text functions.
#1. Extract characters from text
Left function: Returns the first or previous character in the text based on the specified number of characters. Several characters, that is, counting from the left, extract several characters from the text.
Right function: Returns the last character or characters in the text according to the specified number of characters, that is, extracts several characters from the right.
Mid function: Returns a specific number of characters starting from the specified position in the text, that is, extracting several characters starting from a specified position in the middle.
Let’s give a simple example of the application of these three text functions in character extraction, as shown below:
2. In text Character search
Find function and Search function: locate a string in the text, starting from the specified position, and return the position of the search string in the text. The application of these two text functions is shown in the figure below:
We can also see from the example: Both the Find function and the Search function can accurately locate the string in the text. location, but there are also differences between the two functions:
The Find function is case-sensitive, while the Search function is not.
The Search function supports wildcards, but the Find function does not.
3. Character conversion
Upper function: Change the specified text to uppercase
Lower function: Change the specified text to lowercase
Proper function: Change the first letter of the specified text to uppercase
The application of these three text functions is as shown in the figure below:
4. Substitute characters in the text
The Substitute function and the Replace function are both used to replace a certain string in the text. The difference is that the Substitute function replaces a specified string in the text. The Replace function replaces a string at a specified position in the text. In short, one is replaced according to the specified text, and the other is replaced according to the specified position. Their applications are shown in the figure below:
5. Text merging
Phonetic function and Concatenatet function (the 2016 version is called Concat function) can combine text in multiple cells. The difference is that the Phonetic function is not applicable to formula results, numerical values, dates and times, etc. The application is as shown in the figure below:
6. Repeated display of characters
Rept function: Repeat the display of specified characters in the text. As shown in the figure below:
7. Text length calculation
Len function: Calculate the text length, that is, the number of characters. Regardless of whether it is Chinese, English or numbers, it is counted as 1 character.
Lenb function: Calculate the number of bytes of text. The punctuation marks input in Chinese and full-width states are 2 bytes each. The punctuation marks input in English, numeric and half-width states are calculated as 1 byte.
The application of these two text functions is shown in the figure below:
Extension: Len function and Lenb function can be combined for mixed Chinese and English texts ,Computation and extraction of Chinese content.
8. Character cleaning in text
The two data beautification functions, Clean function and Trim function, are mainly used to clean spaces and some special characters in text. Cleaning and deletion, we discussed in the previous article "You don't know these two Excel beauty functions, how can you talk about data processing?" 》This article has introduced it in detail. You can click on the link to view it directly. I won’t go into details here.
9. Character format conversion in this article
Text function: can convert a numerical value into text represented by a specified numerical format. It can be said to be the most varied text function. Function has a certain mysterious color. The main applications of the Text function are shown in the figure below:
For the number format here, you can refer to the various number formats in text form under the Number tab in Cell Format.
In addition, we can also use the Text function to grade the data: for example, if we divide student test scores into good, passing, and failing, enter the formula: =TEXT(A2,"[>=85]Good ;[>=60,
For more Excel-related technical articles, please visit the Excel Basic Tutorial column to learn!
The above is the detailed content of What are the excel string functions?. For more information, please follow other related articles on the PHP Chinese website!

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

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

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

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

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

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

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

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


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Zend Studio 13.0.1
Powerful PHP integrated development environment

Notepad++7.3.1
Easy-to-use and free code editor

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.