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

KCowan

New Member
Joined
Sep 24, 2019
Messages
2
[TABLE="width: 64"]
<colgroup><col width="64" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]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))))))[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
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,223,889
Messages
6,175,226
Members
452,620
Latest member
dsubash

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