Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default IF Statement - AND, OR

Hi,

I have a formula as follows:

=IF((AND(D5$100,000,E510%)),"yes","no")

I want to add another condition as follows:

=IF((AND(D5<-$100,000,E5<-10%)),"yes","no")

....and I can't get it to work.

Any assistance would be appreciated.

James


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default IF Statement - AND, OR

try something like (untested)
=IF(or(AND(D5$100,000,E510%),AND(D5<-$100,000,E5<-10%)),"yes","no")



--
Don Guillett
SalesAid Software

"James Hamilton" wrote in message
...
Hi,

I have a formula as follows:

=IF((AND(D5$100,000,E510%)),"yes","no")

I want to add another condition as follows:

=IF((AND(D5<-$100,000,E5<-10%)),"yes","no")

...and I can't get it to work.

Any assistance would be appreciated.

James




  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default IF Statement - AND, OR

Try a: OR(AND(cond1),AND(Cond2)) construct .., viz.:
=IF(OR(AND(D5100000,0,E510%),AND(D5<-100000,0,E5<-10%)),"yes","no")
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"James Hamilton" wrote:
Hi,

I have a formula as follows:

=IF((AND(D5$100,000,E510%)),"yes","no")

I want to add another condition as follows:

=IF((AND(D5<-$100,000,E5<-10%)),"yes","no")

...and I can't get it to work.

Any assistance would be appreciated.

James


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default IF Statement - AND, OR

Great - thanks guys

"James Hamilton" wrote:

Hi,

I have a formula as follows:

=IF((AND(D5$100,000,E510%)),"yes","no")

I want to add another condition as follows:

=IF((AND(D5<-$100,000,E5<-10%)),"yes","no")

...and I can't get it to work.

Any assistance would be appreciated.

James


  #5   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default IF Statement - AND, OR

"James Hamilton" wrote:
Great - thanks guys


You're welcome !
Thanks for feeding back ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---


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
SQL concatenation statement CLamar Excel Discussion (Misc queries) 0 June 29th 06 01:58 PM
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


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