Software⏱️ 3 min read📅 2026-06-15

How to Fix: If, Match and Index function returning error

Error in formula using IF, MATCH and INDEX functions. Solution to fix the error and extract corresponding values.

Quick Answer: Use the correct syntax for the MATCH function and adjust column references accordingly.

The 'If', 'Match' and 'Index' function is returning an error when trying to compare the value of C3 with names in column A, and extract corresponding values from columns B, C, D, and E. This issue affects users who have a range of cells containing names in A6:A12, as well as their corresponding values in columns B, C, D, and E.

This error can be frustrating because it prevents users from achieving their goal of comparing values and extracting data. However, with the right troubleshooting steps, users can resolve this issue and get back to working efficiently.

⚠️ Common Causes

  • The primary reason for this error is that the MATCH function requires an array as its second argument, but it's being passed a single value ($C$3). This causes the formula to fail because it expects multiple values to search through.
  • An alternative cause could be that the range A6:A12 contains non-matching names, causing the MATCH function to return #N/A, which in turn triggers the error when trying to use INDEX with this result.

🛠️ Step-by-Step Verified Fixes

Correcting the MATCH Function Argument

  1. Step 1: Change the formula to use the entire column range instead of a single value: =(IF(MATCH($C$3,$A6:$A12,0),INDEX($B6:$E12,MATCH($C$3,$A6:$A12,0))," N/A")).
  2. Step 2: This change allows the MATCH function to correctly identify the position of $C$3 within the range A6:A12, and then uses this result to extract the corresponding values from columns B, C, D, and E.

Alternative Solution Using VLOOKUP

  1. Step 1: Use the VLOOKUP function instead of MATCH and INDEX: =(VLOOKUP($C$3,$A6:$E12,1,FALSE)).
  2. Step 2: This alternative solution works by using the VLOOKUP function to directly look up the value in column C within the range A6:E12, and then returns the corresponding value from the same row.

✨ Wrapping Up

To resolve this issue, users can either correct the MATCH function argument or use an alternative solution like VLOOKUP. Both methods should be tested with sample data to ensure accuracy before applying them to the entire range of cells.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions