ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Iserror - too many arguments (https://www.excelbanter.com/excel-discussion-misc-queries/235537-iserror-too-many-arguments.html)

smartgal

Iserror - too many arguments
 
I have the followig formula:

=(if(iserror(HLOOKUP($B7,mm!$2:$23,22, 0),0,HLOOKUP($B7,mm!$2:$23,22, 0))

And I'm getting an error saying too many arguments. Help!

mm

jamescox[_11_]

Iserror - too many arguments
 

If you'll look at the formula in the formula bar when you get the error,
you will see that the zero show in bold below is also shown in bold in
the formula bar.

Excel is trying to tell you where it thinks the problem is (and don't
argue with Excel!)

=(if(iserror(HLOOKUP($B7,mm!$2:$23,22, 0),*0*,HLOOKUP($B7,mm!$2:$23,22,
0))

Specifically, the iserror function takes one argument and you are
missing a parenthesis to close off the iserror() format:

=(if(iserror(HLOOKUP($B7,mm!$2:$23,22,
0)*)*,0,HLOOKUP($B7,mm!$2:$23,22, 0))

But once you make that change, Excel will count parentheses and tell
you that the ones in your formula don't balance, so the final version
will be

=(if(iserror(HLOOKUP($B7,mm!$2:$23,22, 0)),0,HLOOKUP($B7,mm!$2:$23,22,
0))*)*

In cases like this, it's always good to test out the components of the
formula individually - ie, the iserror part, the lookup part in a cell
formula of their own to find what the problem might be.


--
jamescox
------------------------------------------------------------------------
jamescox's Profile: http://www.thecodecage.com/forumz/member.php?userid=449
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=111723


Per Jessen

Iserror - too many arguments
 
Hi

You are missing two closing parenthesis:

=(IF(ISERROR(HLOOKUP($B7,mm!$2:$23,22, 0)),0,HLOOKUP($B7,mm!$2:$23;22, 0)))

but you don't need the outer parenthesis:

=IF(ISERROR(HLOOKUP($B7,mm!$2:$23,22, 0)),0,HLOOKUP($B7,mm!$2:$23;22, 0))

Regards,
Per

"smartgal" skrev i meddelelsen
...
I have the followig formula:

=(if(iserror(HLOOKUP($B7,mm!$2:$23,22, 0),0,HLOOKUP($B7,mm!$2:$23,22, 0))

And I'm getting an error saying too many arguments. Help!

mm



smartgal

Iserror - too many arguments
 
Me? Argue with Excel? Never!! I did try to add some ( ) but I guess I was
still missing one somewhere. Thanks~!

"jamescox" wrote:


If you'll look at the formula in the formula bar when you get the error,
you will see that the zero show in bold below is also shown in bold in
the formula bar.

Excel is trying to tell you where it thinks the problem is (and don't
argue with Excel!)

=(if(iserror(HLOOKUP($B7,mm!$2:$23,22, 0),*0*,HLOOKUP($B7,mm!$2:$23,22,
0))

Specifically, the iserror function takes one argument and you are
missing a parenthesis to close off the iserror() format:

=(if(iserror(HLOOKUP($B7,mm!$2:$23,22,
0)*)*,0,HLOOKUP($B7,mm!$2:$23,22, 0))

But once you make that change, Excel will count parentheses and tell
you that the ones in your formula don't balance, so the final version
will be

=(if(iserror(HLOOKUP($B7,mm!$2:$23,22, 0)),0,HLOOKUP($B7,mm!$2:$23,22,
0))*)*

In cases like this, it's always good to test out the components of the
formula individually - ie, the iserror part, the lookup part in a cell
formula of their own to find what the problem might be.


--
jamescox
------------------------------------------------------------------------
jamescox's Profile: http://www.thecodecage.com/forumz/member.php?userid=449
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=111723




All times are GMT +1. The time now is 04:51 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com