Excel Left-Mid-Right

john lilleystone • February 4, 2020

Exctract parts of a cell to new cell at the beginning, middle or end!

Sometimes you may need to extract specific elements of information from a cell into a new row or column.

Here’s an example;

The highlighted cell below contains some information I want extract into a new column.


I’d like to extract the first 4 characters of the string in cell C1 into a new column D. The formula is =LEFT(C1,4) so in English look at cell C1 and extract the first 4 characters starting from the left.

To extract the last 4 characters from the right would be =RIGHT(C1,4)

If the part you want to extract is in the middle of a string you have to provide one more argument to tell Excel where to start. So below reads look in the middle (MID), start at the 5th character and then return 5 characters from that position.

By John Lilleystone January 21, 2021
Remove whitespaces in Excel using the TRIM function.
excel iferror error alternate result
By john lilleystone April 11, 2020
Replace ugly Excel errors returned by a formula with something more appropriate and pleasing to the eye.
excel transpose
By john lilleystone March 14, 2020
Transpose and paste a vertical column of data horizontally into a row
edit hyperlink
By john lilleystone March 14, 2020
Edit a hyperlink in Outlook 2016
emoji symbol
By john lilleystone March 14, 2020
insert an emoji or symbol into your application
sparklines
By john lilleystone March 1, 2020
Add Sparklines to Excel tables to show trends in the data
random numbers randbetween
By john lilleystone March 1, 2020
Use the RANDBETWEEN function in Excel to randomly generate numbers between a specified upper and lower threshold.
DATEADD MSQUERY
By john lilleystone March 1, 2020
Don't waste time manually editing queries to move the date period on one month. This blog explains how to use DATEADD to dynamically shift the dates on one month on each refresh
By john lilleystone February 29, 2020
Import text files into Excel and use the Text to Columns wizard to separate the data into columns
By john lilleystone February 26, 2020
Return the last non-zero value in a row in Excel
Show More