Function Problems

Replace Google Sheets ARRAYFORMULA with Excel 365 Formulas

Ayan MasoodAyan Masood Nov 13, 2026 872 views

Question details

The user needs to adapt a Google Sheets ARRAYFORMULA formula to Excel 365 so it can find the previous matching value for a token in Microsoft 365.

Replace Google Sheets ARRAYFORMULA with Excel 365 Formulas
Product
Microsoft Excel 365
Device & OS
not provided
Scenario
Migrating a Google Sheets workflow that finds the previous matching value for a token to Microsoft 365.
Observed behavior
The adapted formula should return the last previous matching value for the token, or 0 when no previous match exists.
Before you start

Make sure your Excel 365 version supports dynamic array functions such as FILTER, TAKE, and IFERROR, and open the workbook that contains the token and value columns.

Solution 1Recommended

Use Excel 365 FILTER and TAKE to replace Google Sheets ARRAYFORMULA

Use this approach when you are moving a Google Sheets ARRAYFORMULA workflow to Microsoft 365 and need to return the previous matching value for a token without ARRAYFORMULA.

Excel 365 treats array calculations as native dynamic arrays, so ARRAYFORMULA is not required. FILTER uses one combined include condition followed by the optional if_empty argument, and TAKE(...,-1) returns the last matching row.

1
Open the Excel 365 workbook and select the output cell

Open the workbook that contains the token column and the value column, then click the cell where the first result should appear.

2
Enter the FILTER and TAKE formula

Type =IF($C2="","",IFERROR(TAKE(FILTER($I1:$I$2,$C1:$C$2<>"",0),-1),0)) and adjust $C2, $I1:$I$2, and $C1:$C$2 to match your data ranges.

3
Adjust references for each row and column

Use absolute references where the lookup range must stay fixed, and relative references where the current row token should change as you fill down.

4
Press Enter and test edge cases

Press Enter to let the dynamic array formula spill if needed, then test cases with a blank token and with no previous matching value to confirm the formula returns blank or 0 as expected.

Use Excel 365 FILTER and TAKE to replace Google Sheets ARRAYFORMULA
Formula converted: Once the ranges are aligned to your sheet, the formula returns the previous matching value for the token and 0 when no previous match exists.
WPS direct solution

Apply the Excel 365 dynamic array formula in WPS Spreadsheets

Use WPS Spreadsheets to open your Microsoft 365 workbook and apply the same FILTER and TAKE formula with full .xlsx compatibility and a familiar spreadsheet interface.

  1. 1. Download and install WPS Office: Download WPS Office Free from the official WPS website and install it on your device.
  2. 2. Open the Microsoft 365 workbook: Launch WPS Spreadsheets and open the .xlsx workbook that contains the token and value columns.
  3. 3. Enter the adapted dynamic array formula: Select the output cell, type =IF($C2="","",IFERROR(TAKE(FILTER($I1:$I$2,$C1:$C$2<>"",0),-1),0)), and adjust the ranges to match the data.
  4. 4. Press Enter and verify the result: Press Enter to evaluate the formula, then fill down or adjust references and test blank tokens and no-match cases.
Lets you apply Excel 365-compatible dynamic array formulas in WPS SpreadsheetsMaintains .xlsx format compatibility with Microsoft 365 workbooksFree, lightweight, and easy-to-use spreadsheet applicationFamiliar ribbon interface eases migration from ExcelNo ARRAYFORMULA workaround required when using dynamic array calculations
microsoft office alternative - wps office

Frequently Asked Questions

Do I still need ARRAYFORMULA in Excel 365?

No. Excel 365 uses built-in dynamic arrays, so you can use FILTER, TAKE, IFERROR, and other functions directly without wrapping them in ARRAYFORMULA.

Why does the Excel FILTER formula combine conditions differently than Google Sheets?

In Excel, FILTER takes one array, one combined include expression, and an optional if_empty value; Google Sheets FILTER can use multiple condition arguments, so conditions must be merged in Excel.

What does TAKE(...,-1) do in this formula?

TAKE returns the last row or column from the filtered array, so TAKE(...,-1) gives the most recent previous matching value for the token.

What should the formula return when there is no previous match?

The sample formula uses IFERROR with a value of 0, so it returns 0 when FILTER finds no matching previous row or when TAKE would otherwise error.

Can I use this formula in WPS Spreadsheets?

If your WPS Office version supports Excel 365 dynamic array functions, you can open the .xlsx workbook and use the same formula; otherwise, update WPS Office to the latest version.