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.
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:
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:
Press Enter to return to "Basics" Tutorial", as shown in the figure below:
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:
The result is returned to "Basic Tutorial", as shown below:
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!

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于折叠表格的相关问题,就是分类汇总的功能,这样查看数据会非常的方便,下面一起来看一下,希望对大家有帮助。

在之前的文章《实用Excel技巧分享:利用 数据透视表 来汇总业绩》中,我们学习了下Excel数据透视表,了解了利用数据透视表来汇总业绩的方法。而今天我们来聊聊怎么计算时间差(年数差、月数差、周数差),希望对大家有所帮助!

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于AGGREGATE函数的相关内容,该函数用法与SUBTOTAL函数类似,但在功能上比SUBTOTAL函数更加强大,下面一起来看一下,希望对大家有帮助。

在之前的文章《实用Word技巧分享:聊聊你没用过的“行号”功能》中,我们了解了Word中你肯定没用过的"行号”功能。今天继续实用Word技巧分享,看看Excel表格怎么借用Word进行分栏打印,快来收藏使用吧!

在之前的文章《实用Excel技巧分享:原来“定位功能”这么有用!》中,我们了解了定位功能的妙用。而今天我们聊聊合并后的单元格如何实现筛选功能,分享一种复制粘贴和方法解决这个问题,另外还会给大家分享一种合并单元格的不错的替代方式。

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于zenmm制作倒计时牌的相关内容,使用Excel中的日期函数结合按指定时间刷新的VBA代码,即可制作出倒计时牌,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于如何使用函数寻找总和为某个值的组合的问题,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于折线图的相关问题,下面就根据一些示例来看一下怎么去应用,希望对大家有帮助。


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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

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

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 English version
Recommended: Win version, supports code prompts!

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)
