Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
John
 
Posts: n/a
Default 2 If Statements between 2 values Q

I am trying to write 2 IF Statements and am having problems

1) If C11 is between .85 & .99 then Return Rates!G14
2) If C11 is greater than .99 then Return Rates!C14

I thought it was this

=(IF(C11=0.85,Rates!G14)*OR(IF(Starters!C11<=0.99 ,Rates!G14)))*(IF(C11.99,
Rates!C14))

But its not coming up with my expected result



  #2   Report Post  
Ben McBen
 
Posts: n/a
Default

simpler than you are trying:

If takes 3 args - test, trueresult, falseresult

in your case it sounds like

IF(and(test1, test2), val1, val2)

or


  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Mon, 13 Dec 2004 10:52:43 -0000, "John" wrote:

I am trying to write 2 IF Statements and am having problems

1) If C11 is between .85 & .99 then Return Rates!G14
2) If C11 is greater than .99 then Return Rates!C14

I thought it was this

=(IF(C11=0.85,Rates!G14)*OR(IF(Starters!C11<=0.9 9,Rates!G14)))*(IF(C11.99,
Rates!C14))

But its not coming up with my expected result



Note that, as you defined the problem in your lines 1 and 2, that if C11 = 0.85
or less, or C11=0.99, the result is undefined.

If this is not what you want, you may want to change one or more of the
"greater than" or "less than" symbols to "equal or greater than".

=IF(AND(C110.85,C11<0.99),'Return Rates'!G14,IF(C110.99,C14,"Undefined"))

Another formula that returns zero for undefined C11 and does not require
nesting:

=AND(C110.85,C11<0.99)*'Return Rates'!G14+(C110.99)*'Return Rates'!C14



--ron
  #4   Report Post  
John
 
Posts: n/a
Default

Thanks Ron, works great


"Ron Rosenfeld" wrote in message
...
On Mon, 13 Dec 2004 10:52:43 -0000, "John"

wrote:

I am trying to write 2 IF Statements and am having problems

1) If C11 is between .85 & .99 then Return Rates!G14
2) If C11 is greater than .99 then Return Rates!C14

I thought it was this


=(IF(C11=0.85,Rates!G14)*OR(IF(Starters!C11<=0.9 9,Rates!G14)))*(IF(C11.99

,
Rates!C14))

But its not coming up with my expected result



Note that, as you defined the problem in your lines 1 and 2, that if C11 =

0.85
or less, or C11=0.99, the result is undefined.

If this is not what you want, you may want to change one or more of the
"greater than" or "less than" symbols to "equal or greater than".

=IF(AND(C110.85,C11<0.99),'Return

Rates'!G14,IF(C110.99,C14,"Undefined"))

Another formula that returns zero for undefined C11 and does not require
nesting:

=AND(C110.85,C11<0.99)*'Return Rates'!G14+(C110.99)*'Return Rates'!C14



--ron



  #5   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Mon, 13 Dec 2004 12:59:30 -0000, "John" wrote:

Thanks Ron, works great


You're welcome. Thank you for the feedback.

--ron
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
Zero values in a log chart Joelle_Smith Charts and Charting in Excel 2 May 8th 23 03:42 AM
Second serie doesn't use X-as values JackRnl Charts and Charting in Excel 1 January 20th 05 01:04 AM
Save External Link Values Stephane Excel Discussion (Misc queries) 0 January 3rd 05 11:01 AM
Formula to list unique values JaneC Excel Worksheet Functions 4 December 10th 04 12:25 AM
Linked values turn to #REF! after clicking don't update John Perkins Excel Worksheet Functions 2 December 1st 04 07:53 PM


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