How to Convert Google Sheets REGEXEXTRACT and BYROW Formulas to Excel
Question details
The user wants to translate a Google Sheets formula containing BYROW, MAP, and REGEXEXTRACT into an Excel-compatible formula and resolve spilling issues.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Migrating a spreadsheet containing complex text extraction formulas from Google Sheets to Microsoft Excel.
- Observed behavior
- The formula fails to compute or returns a #NAME? error because REGEXEXTRACT is not a native Excel function, and BYROW/MAP formulas may fail to spill properly.
Verify your Excel version, as dynamic array functions like BYROW and MAP are only available in Excel 365 or Excel 2021, and ensure the cells below your formula are completely empty to allow spilling.
Use Native Excel 365 Text Functions
Replace REGEXEXTRACT with modern Excel 365 text manipulation functions like TEXTAFTER, TEXTBEFORE, and TEXTSPLIT.
Because REGEXEXTRACT is exclusive to Google Sheets, you must rewrite the logic using Excel's built-in text functions. If you are using Microsoft 365, you have access to powerful dynamic array text functions.
Analyze the regular expression pattern used in Google Sheets to determine the specific characters or delimiters separating your target text.
In your Excel cell, use the =TEXTBEFORE() function to extract text occurring before a specific character, or =TEXTAFTER() for text occurring after it.
If you need to extract multiple matching elements, use the =TEXTSPLIT() function to divide the text string based on row or column delimiters.
Wrap your new text extraction logic inside =BYROW(array, LAMBDA(row, ...)) or =MAP() to apply the formula down the entire column automatically.

Extract Text Using Power Query
For complex patterns that require robust data cleaning, use Power Query to parse and extract text without complex worksheet formulas.
Create a Custom VBA Regex Function
Use Visual Basic for Applications (VBA) to create a custom User Defined Function (UDF) that replicates the REGEXEXTRACT behavior in Excel.
Experience Seamless Spreadsheet Compatibility with WPS Office
Struggling with unsupported formulas and complex version differences in Microsoft Excel? Try WPS Office. It provides a lightweight, comprehensive spreadsheet tool that is highly compatible with Microsoft Excel formats, ensuring your data manipulation tasks are smooth and hassle-free.

Frequently Asked Questions
Why do I get a #NAME? error when using REGEXEXTRACT in Excel?
Excel does not have a built-in REGEXEXTRACT function like Google Sheets. Using it directly will result in a #NAME? error because Excel does not recognize the function name. You must replace it with Excel text functions or VBA.
How can I fix a #SPILL! error when using BYROW in Excel?
A #SPILL! error occurs when the destination cells required for the dynamic array formula to expand are not empty. Clear any text, formatting, or hidden spaces in the cells below your formula to resolve the issue.
Can I use regular expressions in Excel without using VBA?
In standard Excel versions, native Regex support is unavailable without VBA or Office Scripts. However, you can often achieve the same extraction results by combining modern text functions like TEXTSPLIT, TEXTBEFORE, and TEXTAFTER in Microsoft 365.
Are the BYROW and MAP functions available in older versions of Excel?
No, BYROW, MAP, and other LAMBDA helper functions are only available in Microsoft 365 subscriptions and Excel 2021. Older versions like Excel 2019 or 2016 do not support these dynamic array functions.




