Split Text String at Specific Character: Generic Formula
Split Text String at Specific Character: Generic Formula
Cart Login
Search... Search
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
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