Function Problems

How to Convert Google Sheets REGEXEXTRACT and BYROW Formulas to Excel

Steven ParkerSteven Parker Nov 11, 2026 869 views

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.

How to Convert Google Sheets REGEXEXTRACT and BYROW Formulas to Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Identify the text delimiter

Analyze the regular expression pattern used in Google Sheets to determine the specific characters or delimiters separating your target text.

2
Use TEXTBEFORE and TEXTAFTER

In your Excel cell, use the =TEXTBEFORE() function to extract text occurring before a specific character, or =TEXTAFTER() for text occurring after it.

3
Split strings with TEXTSPLIT

If you need to extract multiple matching elements, use the =TEXTSPLIT() function to divide the text string based on row or column delimiters.

4
Combine with BYROW or MAP

Wrap your new text extraction logic inside =BYROW(array, LAMBDA(row, ...)) or =MAP() to apply the formula down the entire column automatically.

Use Native Excel 365 Text Functions
Resolving Spill Errors: If your BYROW or MAP formula returns a #SPILL! error, it means Excel cannot output the array because existing data, spaces, or formatting is blocking the path. Clear the cells directly below your formula.
Free Microsoft Office alternative

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.

Highly compatible with Microsoft Excel formats including .xlsx, .xls, and .csv.Rich built-in formulas and functions for advanced data analysis and text manipulation.Free, lightweight, and fast-loading software across Windows, Mac, and Linux.Familiar tabbed user interface ensuring zero learning curve when migrating.
microsoft office alternative - wps office

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.