#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Formula Error

=IF(C2="H",B2,0,If(d2="H",b2,0))

Any thoughts on why I get a message of...

"You've entered too many arguments for this function"


Thanks so much
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Formula Error

If has three arguments... you have four
1. C2="H"
2. B2
3. 0
4. If(d2="H",b2,0)

I think what you want is this
C2="H",B2,If(d2="H",b2,0))
"phowe43" wrote:

=IF(C2="H",B2,0,If(d2="H",b2,0))

Any thoughts on why I get a message of...

"You've entered too many arguments for this function"


Thanks so much

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Formula Error

=IF(C2="H",B2,0,If(d2="H",b2,0))

After the first 0 Excel is expecting a closing ")". That's why you get the
error message.

Try one of these:

=IF(C2="H",B2,IF(D2="H",B2,0))

=IF(OR(C2="H",D2="H"),B2,0)



--
Biff
Microsoft Excel MVP


"phowe43" wrote in message
...
=IF(C2="H",B2,0,If(d2="H",b2,0))

Any thoughts on why I get a message of...

"You've entered too many arguments for this function"


Thanks so much



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Formula Error

Question 1. How many arguments does the IF function want? [See Excel help
if you don't know.]

Question 2. How many arguments does your outer IF function have?
--
David Biddulph

phowe43 wrote:
=IF(C2="H",B2,0,If(d2="H",b2,0))

Any thoughts on why I get a message of...

"You've entered too many arguments for this function"


Thanks so much



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default Formula Error

Hi,

IF allows only 3 arguments =IF(Test,True,False), you have 4.

It is not clear what you want your formula to do?

But if you are trying to show B2 if C2 or D2 = "H" and 0 otherwise then

=IF(OR(C2:D2="H"),B2,0) (array entered - press Shift+Ctrl+Enter to enter
it)

or without array entry

=IF(C2="H",B2,IF(D2="H",B2,0))
or
=IF(OR(C2="H",D2="H"),B2,0)

If this helps, please click the Yes button

Cheers,
Shane Devenshire

"phowe43" wrote in message
...
=IF(C2="H",B2,0,If(d2="H",b2,0))

Any thoughts on why I get a message of...

"You've entered too many arguments for this function"


Thanks so much




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Formula Error

T.Valko - your second option worked like a champ.

Thanks everyone for your input.

"phowe43" wrote:

=IF(C2="H",B2,0,If(d2="H",b2,0))

Any thoughts on why I get a message of...

"You've entered too many arguments for this function"


Thanks so much

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Formula Error

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"phowe43" wrote in message
...
T.Valko - your second option worked like a champ.

Thanks everyone for your input.

"phowe43" wrote:

=IF(C2="H",B2,0,If(d2="H",b2,0))

Any thoughts on why I get a message of...

"You've entered too many arguments for this function"


Thanks so much



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
Formula Error YB Girl[_2_] Excel Discussion (Misc queries) 6 February 15th 08 10:43 PM
Formula Error Marilyn Excel Worksheet Functions 8 September 22nd 06 02:44 AM
error with formula holyman Excel Discussion (Misc queries) 3 July 12th 06 03:37 PM
How do I replace "#N/A" error, to continue my formula w/o error? Ali Khan Excel Worksheet Functions 2 February 20th 06 03:49 PM
Formula error Chris Excel Worksheet Functions 0 November 17th 04 05:08 PM


All times are GMT +1. The time now is 12:30 PM.

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"