Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
DebbieK
 
Posts: n/a
Default How do I nest an OR function within an AND function?

Here is my example - can I do this? What have I done wrong I can't get it to
work.

IF(AND(OR($AD4=A,$AD4=SU,$AD4=GF ),$AF4<),Updated Allowance is Not
Applicable,"")
  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

When I remove the "smart quotes" from your formula, it works as it
should. What does "I can't get it to work" mean?


In article ,
"DebbieK" wrote:

Here is my example - can I do this? What have I done wrong I can't get it to
work.

IF(AND(OR($AD4=A,$AD4=SU,$AD4=GF ),$AF4<),Updated Allowance is Not
Applicable,"")

  #3   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Debbie,

Your formula as shown:

=IF(AND(OR($AD4="A",$AD4="SU",$AD4="GF"),$AF4<"") ,"Updated Allowance is Not
Applicable","")

worked fine for me. What logic do you want to actually use?

HTH,
Bernie
MS Excel MVP

"DebbieK" wrote in message
...
Here is my example - can I do this? What have I done wrong I can't get it

to
work.

IF(AND(OR($AD4="A",$AD4="SU",$AD4="GF"),$AF4<""), "Updated Allowance is

Not
Applicable","")



  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Your formula will check if AD4 is either "A", "SU" or "GF" AND AF4 is not blank

That can be simplified to

=IF(AND(OR($AD4={"A","SU","GF"}),$AF4<""),"Update d Allowance is not
Applicable","")


Regards,

Peo Sjoblom



"DebbieK" wrote:

Here is my example - can I do this? What have I done wrong I can't get it to
work.

IF(AND(OR($AD4=A,$AD4=SU,$AD4=GF ),$AF4<),Updated Allowance is Not
Applicable,"")

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
I cant use englisch function names in a swedich version of excel PE Excel Discussion (Misc queries) 2 December 7th 04 01:00 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM
how to move user defined function Grant Excel Worksheet Functions 1 November 17th 04 06:38 PM
change function variable prompts?? thinkingfield Excel Worksheet Functions 1 November 8th 04 04:01 PM
Counting Function Dilemma Simon Lloyd Excel Worksheet Functions 0 November 8th 04 03:13 PM


All times are GMT +1. The time now is 04:22 AM.

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"