Too few arguments / formula is missing an open/closing parenthesis

KCowan

New Member
Joined
Sep 24, 2019
Messages
2
I copied the formula from a similar one in another thread here, but keeping getting either "too few arguments" or "closing parenthesis". Help?

IFERROR(IF(I3="AVG",VLOOKUP(A3,'Master Table'!$A$3:$Z$3537,22,FALSE),IF(I3="P1/CY Avg",VLOOKUP(A3,'Master Table'!$A$3:$Z$3537,23,FALSE),IF(I3="40/60",VLOOKUP(A3,'Master Table'!$A$3:$Z$3537,24,FALSE),IF(I3="30/70",VLOOKUP(A3,'Master Table'!$A$3:$Z$3537,25,FALSE),IF(I3="20/80",VLOOKUP(A3,'Master Table'!$A$3:$Z$3537,26,FALSE))))))

<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>
</tbody>
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hi & welcome to MrExcel.
You are missing the end of the IFERROR, try
=IFERROR(IF(I3="AVG",VLOOKUP(A3,Pcode!$A$3:$Z$3537,22,FALSE),IF(I3="P1/CY Avg",VLOOKUP(A3,Pcode!$A$3:$Z$3537,23,FALSE),IF(I3="40/60",VLOOKUP(A3,Pcode!$A$3:$Z$3537,24,FALSE),IF(I3="30/70",VLOOKUP(A3,Pcode!$A$3:$Z$3537,25,FALSE),IF(I3="20/80",VLOOKUP(A3,Pcode!$A$3:$Z$3537,26,FALSE)))))),"oops")
Replace the part in red to suit
 
Upvote 0
You're welcome.
I've also noticed that if the Value in I3 doesn't match one of the values in the formula, it will return FALSE, to correct that use
=IFERROR(IF(I3="AVG",VLOOKUP(A3,Pcode!$A$3:$Z$3537,22,FALSE),IF(I3="P1/CY Avg",VLOOKUP(A3,Pcode!$A$3:$Z$3537,23,FALSE),IF(I3="40/60",VLOOKUP(A3,Pcode!$A$3:$Z$3537,24,FALSE),IF(I3="30/70",VLOOKUP(A3,Pcode!$A$3:$Z$3537,25,FALSE),IF(I3="20/80",VLOOKUP(A3,Pcode!$A$3:$Z$3537,26,FALSE),"No value"))))),"oops")

Once again change value in red to suit.
 
Upvote 0

Forum statistics

Threads
1,217,373
Messages
6,136,184
Members
449,997
Latest member
satyam7054

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