How to Fix Excel TEXTBEFORE #NAME? Error in Office 2019
Question details
The user needs to understand why the TEXTBEFORE function causes a #NAME? error and adds an _xlfn prefix in Excel 2019, and how to resolve the issue.

- Product
- Microsoft Excel 2019
- Device & OS
- not provided
- Scenario
- Opening or editing a workbook that contains the TEXTBEFORE function in an older version of Excel.
- Observed behavior
- Excel displays a #NAME? error and automatically appends the _xlfn prefix to the formula, indicating the function is unrecognized.
Verify your Excel version by clicking File > Account. If you are using Excel 2019 or earlier, be prepared to replace newer text functions with traditional formula combinations.
Use LEFT and FIND as an Alternative Formula
Replace the unsupported TEXTBEFORE function with a combination of older, universally supported Excel functions to extract your text.
Because Excel 2019 does not have the TEXTBEFORE function built-in, you can achieve the exact same result by combining the LEFT and FIND (or SEARCH) functions. This ensures your workbook remains compatible with all Excel versions.
Click on the cell where you want the extracted text to appear.
Type the formula =LEFT(A2, FIND("-", A2) - 1). Replace A2 with the cell containing your original text, and replace the hyphen ("-") with the specific delimiter character you want to split by.
Press Enter. The FIND function locates the position of your delimiter, and the LEFT function extracts all the text appearing before that position.

Split Text Using Power Query
Extract text before a specific delimiter in bulk using Power Query, a robust data transformation tool fully supported in Excel 2019.
Open the Workbook in Excel for the Web
Access the file in an environment that natively supports the TEXTBEFORE function if you cannot change the formulas.
Try WPS Office for Seamless Spreadsheet Compatibility
If you frequently encounter formula compatibility issues or unsupported functions in older versions of Excel, WPS Office provides a lightweight, highly compatible alternative. It supports a vast array of modern spreadsheet functions and offers a familiar interface, completely free of charge.
- 1. Download and install: Visit the official WPS Office website to download the free installer for your operating system.
- 2. Open your workbook: Launch WPS Spreadsheets and click 'Open' to load your existing Excel files seamlessly.
- 3. Edit without hassle: Work on your formulas and formatting with high compatibility, ensuring your data remains accurate and accessible.

Frequently Asked Questions
What does the _xlfn prefix mean in my Excel formula?
The _xlfn prefix is automatically added by Excel when a workbook contains a function that is not supported in the currently installed version. It alerts you that the function (like TEXTBEFORE) exists in a newer version but cannot be calculated in your current software.
Can I install an update for Excel 2019 to get the TEXTBEFORE function?
No, TEXTBEFORE is a modern text function introduced in Microsoft 365 and Excel 2021. Because Excel 2019 is a perpetual license product, it does not receive new feature updates. You must use alternative formulas like LEFT and FIND.
Will the #NAME? error disappear if I send the file back to a Microsoft 365 user?
Yes. If you do not edit or overwrite the cell containing the _xlfn formula, the original function remains intact in the background. When a user with a compatible Excel version opens the file, it will recognize the function and calculate correctly.
How do I extract text AFTER a character in Excel 2019?
To replicate the TEXTAFTER function in older versions of Excel, use the RIGHT function combined with LEN and FIND. For example: =RIGHT(A2, LEN(A2) - FIND("-", A2)). This calculates the total length of the string and extracts everything to the right of your specified delimiter.




