MID function
Returns characters from the middle of a text value.
Syntax
=MID(text, start_num, num_chars)
| Argument | What it means |
|---|---|
text | The text or cell to read. |
start_num | The position of the first character to take, counting from 1. |
num_chars | How many characters to take. |
Example
=MID(A2, 5, 2)
Starting at character 5, takes 2 characters, so "INV-2041" becomes "20".
Try itType =MID( in E2 and click cells to fill in the arguments.
Click a cell, then type. Right-click for rows, columns, sort and filter.
A
B
C
D
E
F
G
H
I
J
K
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Item
Qty
Price
Date
Try here
Apples
12
$0.50
2024-01-15
Bananas
30
$0.25
2024-02-29
Cherries
8
$3.20
2024-04-30
Dates
15
$2.75
2024-07-27
Figs
5
$1.90
2024-12-01