Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting a #Value in my nested IF statement...

Status
Not open for further replies.

djmousie

Technical User
Oct 10, 2001
164
US
I'm trying to create a nested if this is giving me a "#VALUE".

If you break up the IF statements, they work fine by themselves, but when combined, I get the #VALUE.

Any thoughts?

=IF(H65<F67,0),IF(H62<(H65-F67),(H65-F67),SUM(H60,H61,H62,H63))
 
Hi,

First CLOSE Parenthesis in the wrong place
[tt]
=IF(H65<F67,0,IF(H62<(H65-F67),(H65-F67),SUM(H60,H61,H62,H63)))
[/tt]


Skip,

[glasses] [red]Be advised:[/red] When transmitting sheet music...
If it ain't baroque, don't fax it! [tongue]
 
Thanks for the quick reply, i knew it had something to do with my paranthesis.

:)
 
Try this:
=IF(H65<F67,0,IF(H62<(H65-F67),(H65-F67),SUM(H60:H63)))

The "value-if-false" portion now performs the 2nd "if".

Let them hate - so long as they fear... Lucius Accius
 
Delete the [red]red[/red] ")" and add the [blue]blue[/blue] one.

Code:
=IF(H65<F67,0[red])[/red],IF(H62<(H65-F67),(H65-F67),SUM(H60,H61,H62,H63))[blue])[/blue]

John

Every generalization is false, including this one.
 
Whoa, I'm just a *little* slow, huh? I tried to make it too pretty.

John

Every generalization is false, including this one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top