Skip to content

Wrong number of arguments to VLOOKUP (or IFERROR) — Google Sheets #N/A fix

Updated

The cell is #N/A. The tooltip is Wrong number of arguments to VLOOKUP. Expected between 3 and 4 arguments, but got 2 arguments. (The function name, the expected count, and the “got” count change with the formula.) Sheets checked the argument list and stopped. It did not search for the key. The values in the table do not matter yet.

This page is a bad argument count on an ordinary function, usually from a parenthesis in the wrong place. A LAMBDA with the wrong number of names is MAKEARRAY / LAMBDA or MAP size. An odd number of arguments on IFS is IFS no match / default. Keep the Google Sheets UI in English.

  1. Open a blank spreadsheet. In A1 type sku, B1 name. A2 101, B2 Widget. A3 202, B3 Gadget. In D1 type lookup. D2 101.

Too few arguments. In E1 type two_args. In E2 enter =VLOOKUP(D2,A2:B3). E2 is #N/A. Hover E2. The tooltip is Wrong number of arguments to VLOOKUP. Expected between 3 and 4 arguments, but got 2 arguments. VLOOKUP needs the index (and usually FALSE). This call has only the key and the range. Leave E2 broken.

E2 selected. Formula bar shows =VLOOKUP(D2,A2:B3). E2 is #N/A. Tooltip: Wrong number of arguments to VLOOKUP. Expected between 3 and 4 arguments, but got 2 arguments. D2 is 101. A2:B3 is 101/Widget and 202/Gadget.

Too many arguments. In E4 type five_args. In E5 enter =VLOOKUP(D2,A2:B3,2,FALSE,"none"). E5 is #N/A. Hover E5. The tooltip is Wrong number of arguments to VLOOKUP. Expected between 3 and 4 arguments, but got 5 arguments. "none" is a fifth argument; VLOOKUP allows only three or four. Leave E5 broken.

A common wrap that hides it. If you instead enter =IFERROR(VLOOKUP(D2,A2:B3,2,FALSE,"none")), the cell is blank, not #N/A. Verified 2026-11-27 in English Sheets (Locale United States): IFERROR allows a single argument, so it swallows the inner arity error. ISERROR and ISNA are both FALSE, and the tooltip never appears. That is why this page demonstrates the five-argument case with the bare VLOOKUP call.

E5 selected. Formula bar shows =VLOOKUP(D2,A2:B3,2,FALSE,"none"). E5 is #N/A. Tooltip: Wrong number of arguments to VLOOKUP. Expected between 3 and 4 arguments, but got 5 arguments. D2 is 101. A2:B3 is 101/Widget and 202/Gadget.

A working wrap, as contrast. In E7 enter =IFERROR(VLOOKUP(D2,A2:B3,2,FALSE),"none"). E7 is Widget. The closing parenthesis after FALSE ends VLOOKUP. "none" is the second argument of IFERROR. Leave E7 as the control.

IMPORTRANGE closed too late. This is the other common bracket. The broken pattern is =VLOOKUP(D2,IMPORTRANGE("SPREADSHEET_ID","Sheet1!A2:B3",2,FALSE)) — the 2,FALSE were eaten by IMPORTRANGE, so VLOOKUP got two arguments and the tooltip is the same “got 2” message as E2. Do not add a live IMPORTRANGE to a tutorial file just to demo this. After E2, the fix is visible: close IMPORTRANGE after the range string, then pass the index. Allow access is IMPORTRANGE connect, a different #REF!.

  • Sheets counts comma-separated (or locale-semicolon-separated) arguments in each call before it evaluates values. The tooltip always has the same shape: Wrong number of arguments to NAME. Expected …, but got N arguments. Google documents that shape (for example on LAMBDA). The result of this failure is #N/A, not #VALUE!.
  • Nested parentheses are the usual cause. A ) that closes too late hands extra arguments to the inner function (IFERROR(VLOOKUP(..., "none"))). A ) that closes too early starves the outer function (VLOOKUP(IMPORTRANGE(..., 2, FALSE))).
  • The tooltip names the function that received the bad count. Read that name first. Then click in the formula bar: when the cursor is inside a function, Sheets highlights the current argument in the helper popup.
  • After the count is right, the cell may still be #N/A for a real lookup miss. That later tooltip is “Did not find value …”: VLOOKUP #N/A.

This is not unknown function. The name VLOOKUP is spelled correctly. This is not IFS or a LAMBDA arity error, even though those tooltips also start with “Wrong number of arguments.” This is not a locale parse error from using commas in a semicolon locale: formula parse locale.

Leave E2 and E5 as #N/A from the bare two-argument and five-argument VLOOKUP calls.

Put the closing parenthesis where that function actually ends. The working wrap is already in E7: =IFERROR(VLOOKUP(D2,A2:B3,2,FALSE),"none"). For an import, the working shape is =VLOOKUP(D2,IMPORTRANGE("SPREADSHEET_ID","Sheet1!A2:B3"),2,FALSE) — the ) after the range string belongs to IMPORTRANGE.

E7 selected. Formula bar shows =IFERROR(VLOOKUP(D2,A2:B3,2,FALSE),"none"). E7 is Widget. E5 is still #N/A from the bare five-argument VLOOKUP.

Use the helper popup as a counter. Click into the formula and arrow through the arguments. If you land on "none" while VLOOKUP is still the function being hinted, the parenthesis is in the wrong place.

Do not wrap the bad count in another IFERROR and stop. A misplaced "none" inside VLOOKUP can make the cell go blank, with no tooltip at all. Even a correctly placed IFERROR around E2 would hide the arity tooltip, and the lookup never ran. Fix the count first, then decide whether a missing key should show "none": IFERROR vs IFNA.

If the tooltip already names IFS or LAMBDA, leave this page and use those tutorials. If it names VLOOKUP and says it did not find the value, the count is already right and the key does not match.