Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 84
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,533
Default 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


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 84
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Iserror help Jim Excel Discussion (Misc queries) 3 December 11th 08 09:11 PM
ISERROR Latika Excel Worksheet Functions 1 July 18th 06 04:19 PM
iserror Dauphin Excel Worksheet Functions 2 March 26th 06 11:46 PM
ISERROR Dee Excel Worksheet Functions 4 August 24th 05 07:37 PM
iserror Bill R Excel Worksheet Functions 1 August 4th 05 07:31 PM


All times are GMT +1. The time now is 08:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"