search
HomeTopicsexcelWhat is the function of mid function in excel?

The function of the mid function in excel is: starting from the specified position of a text string, intercepting the specified number of characters; the syntax format is "MID (text, start_num, num_chars)", text represents the string, and start_num represents Starting position; num_chars represents the interception number.

What is the function of mid function in excel?

excel mid function

Main function: From the specified position of a text string Start by intercepting the specified number of characters.

When the Mid function intercepts a string, whether it is Chinese characters, letters or numbers, it is counted as one character

Usage format:

MID(text,start_num,num_chars)

Parameter description:

  • text represents a text string

  • start_num is the starting position of the character to be extracted, it must be greater than or equal to 1, otherwise an error will be returned; If start_num is greater than the text length, null will be returned; if start_num is less than the text length plus Num_Chars is greater than the text length, only characters up to the end of the text will be returned.

  • Num_Chars is the number of characters to be extracted. It must be greater than 0, otherwise a #VALUE! error will be returned.

How to use Excel Mid function

1. Intercept Chinese characters

Select cell H4, enter the formula =MID(B4,3,2), press Enter, return to "Short Sleeves", the operation process steps are as shown in the figure below:

What is the function of mid function in excel?

Note: The content of B4 is "pink short-sleeved shirt", start_num is 3, Num_Chars is 2, that is, extraction starts from the third character, and the length of the extracted string is 2, so "short-sleeved shirt" is returned; description The MID function counts each Chinese character as one character.

2. Reverse value (ie, value from right to left)

If you want to get the value from the 4th digit from the bottom and only take 4 characters. Copy the formula =MID(A1,LEN(A1) - 4 1,4) to cell B1, as shown below:

What is the function of mid function in excel?

Press Enter to return to "Basics" Tutorial", as shown in the figure below:

What is the function of mid function in excel?

Instructions: The formula first uses the Len function to return the length of the string A1, and then uses it to subtract the 4th digit and add 1, so You can locate the beginning of the string to be intercepted. The interception length is 4, so the four words "Basic Tutorial" are returned. If you want to intercept the third to last digit, just change 4 to 3, and the formula becomes =MID(A1,LEN(A1) - 3 1,3), as shown in the figure below:

What is the function of mid function in excel?

The result is returned to "Basic Tutorial", as shown below:

What is the function of mid function in excel?

The above is the detailed content of What is the function of mid function in excel?. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
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

Video Face Swap

Video Face Swap

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

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.