Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
gryfon
 
Posts: n/a
Default IF Statement question

I can this statement to work

=SUM(IF(C3<112,(0),IF(C3<298,SUM(C3*0.17)-19.04)))
but when I add to it like this

=SUM(IF(C3<112,(0),IF(C3<298,SUM(C3*0.17)-19.04),IF(C3<322,SUM(C3*0.37)-78.7669))
I get error message "Too many arguements for this function"

Can someone tell me where I'm going wrong
TIA


  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Well, for starters, you don't need any of the SUM
functions in either formula. They're basically doing
nothing. They're just summing a single number returned by
a particular IF function.

You can write those formulas as:

=IF(C3<112,0,IF(C3<298,C3*0.17-19.04))

=IF(C3<112,0,IF(C3<298,C3*0.17-19.04,IF(C3<322,C3*0.37-
78.7669)))

In both cases however, if C3 = 298 and 322 in each
respective formula, You'll get a return of FALSE since you
haven't defined that variable at the end of either formula.

Biff

-----Original Message-----
I can this statement to work

=SUM(IF(C3<112,(0),IF(C3<298,SUM(C3*0.17)-19.04)))
but when I add to it like this

=SUM(IF(C3<112,(0),IF(C3<298,SUM(C3*0.17)-19.04),IF

(C3<322,SUM(C3*0.37)-78.7669))
I get error message "Too many arguements for this

function"

Can someone tell me where I'm going wrong
TIA


.

  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Couple of things:

1) You don't need the SUM()s

2) Try

=IF(C3<112,0,IF(C3<298,C3*0.17-19.04,IF(C3<322,C3*0.37-78.7889,"Greater
than or equal to 322")))



In article ,
"gryfon" wrote:

I can this statement to work

=SUM(IF(C3<112,(0),IF(C3<298,SUM(C3*0.17)-19.04)))
but when I add to it like this

=SUM(IF(C3<112,(0),IF(C3<298,SUM(C3*0.17)-19.04),IF(C3<322,SUM(C3*0.37)-78.766
9))
I get error message "Too many arguements for this function"

Can someone tell me where I'm going wrong
TIA

  #4   Report Post  
Myrna Larson
 
Posts: n/a
Default

You aren't nesting the IF statements properly. The right parenthesis after the
19.04 doesn't belong there, but rather at the end of the formula, like this:

=SUM(IF(C3<112,(0),IF(C3<298,SUM(C3*0.17)-19.04,IF(C3<322,SUM(C3*0.37)-78.7669))))

BUT you don't need any SUM functions. You use SUM when you want to add several
numbers. You aren't doing that. This should be written as

=IF(C3<112,0,IF(C3<298,C3*0.17-19.04,IF(C3<322,C3*0.37-78.7669)))


On Mon, 04 Apr 2005 03:15:35 GMT, "gryfon" wrote:

I can this statement to work

=SUM(IF(C3<112,(0),IF(C3<298,SUM(C3*0.17)-19.04)))
but when I add to it like this

=SUM(IF(C3<112,(0),IF(C3<298,SUM(C3*0.17)-19.04),IF(C3<322,SUM(C3*0.37)-78.7669))
I get error message "Too many arguements for this function"

Can someone tell me where I'm going wrong
TIA


  #5   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=IF(C3<112,0,IF(C3<298,(C3*0.17)-19.04,IF(C3<322,(C3*0.37)-78.7669,"Not
Defined")))

When C3 = 322, you'll get "Not Defined".

gryfon wrote:
I can this statement to work

=SUM(IF(C3<112,(0),IF(C3<298,SUM(C3*0.17)-19.04)))
but when I add to it like this

=SUM(IF(C3<112,(0),IF(C3<298,SUM(C3*0.17)-19.04),IF(C3<322,SUM(C3*0.37)-78.7669))
I get error message "Too many arguements for this function"

Can someone tell me where I'm going wrong
TIA




  #6   Report Post  
gryfon
 
Posts: n/a
Default

Thanks, Works like a charm.
"Biff" wrote in message
...
Hi!

Well, for starters, you don't need any of the SUM
functions in either formula. They're basically doing
nothing. They're just summing a single number returned by
a particular IF function.

You can write those formulas as:

=IF(C3<112,0,IF(C3<298,C3*0.17-19.04))

=IF(C3<112,0,IF(C3<298,C3*0.17-19.04,IF(C3<322,C3*0.37-
78.7669)))

In both cases however, if C3 = 298 and 322 in each
respective formula, You'll get a return of FALSE since you
haven't defined that variable at the end of either formula.

Biff

-----Original Message-----
I can this statement to work

=SUM(IF(C3<112,(0),IF(C3<298,SUM(C3*0.17)-19.04)))
but when I add to it like this

=SUM(IF(C3<112,(0),IF(C3<298,SUM(C3*0.17)-19.04),IF

(C3<322,SUM(C3*0.37)-78.7669))
I get error message "Too many arguements for this

function"

Can someone tell me where I'm going wrong
TIA


.



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
If Statement Question carl Excel Worksheet Functions 1 March 11th 05 04:55 AM
What statement to use? Paul Excel Worksheet Functions 6 February 13th 05 05:23 PM
How do I fix a circular reference in a financial statement? drjayhawk25 Excel Discussion (Misc queries) 0 February 7th 05 05:19 PM
7+ nested if statement? Turi Excel Worksheet Functions 3 December 20th 04 07:55 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


All times are GMT +1. The time now is 05:14 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"