IFERROR function with Array, Index, and Match combination function for Google Sheets

CLS1986

New Member
Joined
Jan 23, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi - I'd like for the following function to return a blank cell rather than #n/a when there's no match, but I can't figure out how to make it work - any help would be greatly appreciated!
=ARRAY_CONSTRAIN(ARRAYFORMULA((INDEX('Schedule Information'!B:B,MATCH(B8,'Schedule Information'!D:D,0)))), 1, 1)
 
Last edited by a moderator:

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi CLS,

I don't have any Arrays to test with, but I do use the IFERROR Function in a few of my workbooks.

I basically just wrap the existing code inside the IFERROR function.

Without IFERROR:
AVERAGEIFS(tbl_Student1[Book Level],tbl_Student1[Test Date],[@[Test Date]])

With IFERROR:
=IFERROR(AVERAGEIFS(tbl_Student1[Book Level],tbl_Student1[Test Date],[@[Test Date]]),0)

IFERROR Syntax:

IFERROR(value, value_if_error)

In my example, I'm returning a 0 for the value_if_error.

Hope this helps...
 
Upvote 0
Your profile says Office 365 but is this a Google Sheets question?
 
Upvote 0
Thanks to you both for your response. I'm sorry, this is a google sheets question - I have Microsoft 365 but must use sheets for this application. I've tried wrapping the existing function within the iferror function, but only get a "Wrong number of arguments to ARRAY_CONSTRAIN. Expected 3 arguments, but got 2 arguments" #n/a response. Any ideas?
 
Upvote 0
How about
Excel Formula:
=IFNA(INDEX('Schedule Information'!B:B,MATCH(B8,'Schedule Information'!D:D,0)),"")
 
Upvote 0

Forum statistics

Threads
1,223,315
Messages
6,171,410
Members
452,399
Latest member
oranges

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top