0% found this document useful (0 votes)
30 views

Split Text String at Specific Character: Generic Formula

This document explains how to use Excel formulas to split a text string at a specific character. It provides a generic formula that uses the LEFT and FIND functions to extract the part of the text before the character, and the RIGHT and LEN functions to extract the part after the character. An example splits the text into two parts at the underscore character. The formulas work by using FIND to locate the character's position, and LEFT and RIGHT extract the parts based on that position.

Uploaded by

Yamini Shinde
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views

Split Text String at Specific Character: Generic Formula

This document explains how to use Excel formulas to split a text string at a specific character. It provides a generic formula that uses the LEFT and FIND functions to extract the part of the text before the character, and the RIGHT and LEN functions to extract the part after the character. An example splits the text into two parts at the underscore character. The formulas work by using FIND to locate the character's position, and LEFT and RIGHT extract the parts based on that position.

Uploaded by

Yamini Shinde
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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