You are on page 1of 2

Excel formula: Split text string at specific character | Exceljet Page 1 of 8

Cart Login

Quick, clean, and to the point


Training Videos Functions Formulas Shortcuts Blog

Search... Search

Split text string at specific


character

Topic Guide

• Function Guide
• Formula Examp
• Excel Shortcuts
Generic formula  • Pivot Tables
• Excel Tables
= LEFT(text,FIND(character,text) - 1) • INDEX and
MATCH
• Excel Charts
• Conditional
Explanation 
Formatting
To split a text string at a certain character, you can use a • Custom
combination of the LEFT, RIGHT, LEN, and FIND Number
functions. Formats

https://exceljet.net/formula/split-text-string-at-specific-character 5/23/2018
Excel formula: Split text string at specific character | Exceljet Page 2 of 8

In the example shown, the formula in C5 is: • Data


Validation
= LEFT(B5,FIND("_",B5) - 1) • Nested IF
examples
• Formula
And the formula in D5 is: challenges
• How-to videos
= RIGHT(B5,LEN(B5) - FIND("_",B5)) • Video training
• Excel glossary
• Excel people
How these formulas work
• Excel books
The first formula uses the FIND function to locate the • Recent
underscore(_) in the text, then we subtract 1 to move comments
back to the "character before the special character".
Key functions

FIND("_",B5) - 1 • IF function
• VLOOKUP funct
In this example , FIND returns 7, so we end up with 6. • SUMIFS
function
This result is fed into the LEFT function like as • COUNTIFS
"num_chars" - the number of characters to extract from function
B5, starting from the left: • INDEX
function
= LEFT(B5,6) • MATCH
function
• SUMPRODUCT
The result is the string "011016". function

To get the second part of the text, we use FIND with the
right function.
Hi - I'm
We again use FIND to locate the underscore (7), then Dave
subtract this result from the total length of the text in B5 Bruns,
(22), calculated with the LEN function: and I
run Exceljet with my
LEN(B5) - FIND("_",B5) wife, Lisa. Our goal is
to help you work
faster in Excel. We
This gives us 15 (22-7), which is fed into the RIGHT create short videos,
function as "num_chars" -  - the number of characters to and clear examples of
extract from B5, starting from the right: formulas, functions,

https://exceljet.net/formula/split-text-string-at-specific-character 5/23/2018

You might also like