Share this article

This article is translated in

Improve this guide

Fix: The Array Value Could Not be Found Error in Sheets

4 min. read

Updated onJanuary 8, 2024

updated onJanuary 8, 2024

Share this article

This article is translated in

Improve this guide

Read our disclosure page to find out how can you help Windows Report sustain the editorial teamRead more

Key notes

GoogleSheetsis among the best freely availablespreadsheet appalternatives to Excel.Sheetsincludes a SUBSTITUTE formula that enables you to replace a specific letter (or text string) in onecellwith a word.

Thecellthat includes the SUBSTITUTE formula can display the replaced text for onecell.

However, the SUBSTITUTE formula can’t display replaced text output for a range of cells. If you include acellrange within it, the formula’scellwill display anArray value could not be founderror message as shown in the snapshot directly below.

If you’re wondering how to fix thaterrorso that SUBSTITUTE can be applied to a range of cells, check out the resolutions below.

How can I fix the array value error for SUBSTITUTE?

How can I fix the array value error for SUBSTITUTE?

1. Turn the SUBSTITUTE formula into an array formula

To fix theArray value could not be founderror, you need to incorporate SUBSTITUTE within an array formula. An array formula is one that can return multiple output for a range of cells.

Thus, users who need to replace text in range of cells and then display the output in another range need to utilize an array formula.

So, what you need to do is add ARRAYFORMULA to the beginning of the SUBSTITUTE formula. To do that, select thecellthat includes the SUBSTITUTE formula.

In addition to optimizing your SUBSTITUTE formulas with ARRAYFORMULA, it’s also important to understand other array methods in JavaScript. Learn more abouttroubleshooting issues with Array.prototype.map() and arrow functionsto enhance your JavaScript coding skills.

You must click in the formula bar, enterARRAYFORMULAjust after the equals (=) sign as shown in the snapshot directly below.

Then your SUBSTITUTE formula will display replaced text output for a range of cells instead of an arrayerror.

In the example shown in the snapshot directly below, the formula replaces Y in three column cells with Yes and displays the output across three other cells below them.

2. Enter the REGEXMATCH formula instead

Alternatively, you could combine REGEXMATCH with an array formula for the same output.

3. Enter the REGEXREPLACE formula

So, that’s how you can fix theArray value could not be founderrorinGoogle Sheets. The overall resolution is to combine SUBSTITUTE, REGEXREPLACE, or REGEXMATCH with array formulas so that they display replaced (or substituted) text output across a range of cells.

Let us know if you found this tutorial to be useful by leaving us a message in the comments section below.

More about the topics:Google services,Google Sheets

Matthew Adams

Windows Hardware Expert

Matthew is a freelancer who has produced a variety of articles on various topics related to technology. His main focus is the Windows OS and all the things surrounding it.

He is passionate about the tech world, always staying up-to-date with the latest and greatest. With an analytical view, he likes problem-solving, focusing on errors and their causes.

In his free time, he likes to read and write about history and tries to always develop new skills.

User forum

0 messages

Sort by:LatestOldestMost Votes

Comment*

Name*

Email*

Commenting as.Not you?

Save information for future comments

Comment

Δ

Matthew Adams

Windows Hardware Expert

He is passionate about everything surrounding Microsoft’s OS, focusing on troubleshooting guides & tips for everyday problems.