Excel Text Extract Helper
Suggest fixed-position or delimiter-based Excel formulas from source text and the substring you want to extract.
Inputs
Updates as you typeThe source text is assumed to be in A1. The first match is used; check the formula on other rows too. Regional settings may require semicolons instead of commas.
Results
Expected result
| First match position | 4 |
|---|---|
| Occurrences | 1 |
Fixed position · MID
=MID(A1,4,4)Delimiter based · Microsoft 365
=TEXTBEFORE(TEXTAFTER(A1,"-",1),"-")Delimiter based · Excel 2016 or later
=MID(A1,FIND("♦",SUBSTITUTE(A1,"-","♦",1))+1,FIND("♦",SUBSTITUTE(A1,"-","♦",2))-(FIND("♦",SUBSTITUTE(A1,"-","♦",1))+1))Overview
Suggest fixed-position or delimiter-based Excel formulas from source text and the substring you want to extract.
Formula
Fixed position: =MID(A1,start,length) Start/end: LEFT / RIGHT Legacy delimiters: MID + FIND + SUBSTITUTE + LEN Microsoft 365: TEXTBEFORE + TEXTAFTER
Example
How to use
- Check the units, enter the required values and select the available calculation options.
- Results update immediately. Correct any highlighted input before using the result.
- Choose display precision, copy the result or share the current inputs. Reset restores the example values.
Engineering notes
- No AI or external API is used. Suggestions follow simple patterns and use the first occurrence; inspect repeated or irregular data manually.
- Fixed-position formulas depend on the source layout. Legacy formulas use a marker absent from the sample: confirm it is also absent from the rest of the data.
Frequently asked questions FAQ
What if the target appears several times?
The first match and occurrence count are shown. Review the generated formula and adjust the occurrence number when another match is required.
Does display precision change the calculation?
No. Rounding is applied only to displayed results, not intermediate calculations. Small nonzero values use scientific notation. Consider the precision of the original measurements when interpreting results.
Related tools
String Split Helper
Preview text split by a literal delimiter, with TEXTSPLIT for Microsoft 365 and guidance for older Excel versions.
Open calculatorUnit Conversion Formula Helper
Copy arithmetic or Excel CONVERT formulas that convert the value in cell A1 to another engineering unit.
Open calculatorCommon Excel Formula Examples
Explore common text functions using a fixed pipe-tag sample, with each formula and its expected result.
Open calculator