A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Multiple AND OR functions



 
 
Thread Tools Display Modes
  #1  
Old April 30th, 2010, 01:11 PM posted to microsoft.public.excel.worksheet.functions
Woodi2
external usenet poster
 
Posts: 24
Default Multiple AND OR functions

Is it possible to make this function work?

=IF(AND(AND($B9="Z",AE9=35),OR(J9=1,J9="M",J9="C") ),1000,IF(AND(AND($B9="A+",AE9=35),OR(J9=1,J9="M", J9="C")),750))

I need to find out if Cell B9 = Z and if Cell AE9 = 35, if this true then
check cell J9 and check if it equals 1, M or C then return the value as 1000.
(that bit works OK)
I also want it to check if an alternative statement is true if the first is
false whereby it checks the the same set of cells but this time, check if B9
=A+, if Cell AE9 = 35, if this true then check cell J9 and check if it equals
1, M or C then return the value as 750. I can get each function to work
individually but dont know how to combine it into one function.
  #2  
Old April 30th, 2010, 01:25 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Multiple AND OR functions

Try the below...

=IF(AND($B9="Z",AE9=35),IF(OR(J9=1,J9="M",J9="C"), 1000,""),
IF(AND($B9="A+",AE9=35),IF(OR(J9=1,J9="M",J9="C"), 750,""),""))

--
Jacob (MVP - Excel)


"Woodi2" wrote:

Is it possible to make this function work?

=IF(AND(AND($B9="Z",AE9=35),OR(J9=1,J9="M",J9="C") ),1000,IF(AND(AND($B9="A+",AE9=35),OR(J9=1,J9="M", J9="C")),750))

I need to find out if Cell B9 = Z and if Cell AE9 = 35, if this true then
check cell J9 and check if it equals 1, M or C then return the value as 1000.
(that bit works OK)
I also want it to check if an alternative statement is true if the first is
false whereby it checks the the same set of cells but this time, check if B9
=A+, if Cell AE9 = 35, if this true then check cell J9 and check if it equals
1, M or C then return the value as 750. I can get each function to work
individually but dont know how to combine it into one function.

  #3  
Old April 30th, 2010, 01:25 PM posted to microsoft.public.excel.worksheet.functions
Sean Timmons
external usenet poster
 
Posts: 1,722
Default Multiple AND OR functions

The formula below works fine. Are you looking for there to be a value if both
are false?

=IF(AND(AND($B9="Z",AE9=35),OR(J9=1,J9="M",J9="C") ),1000,IF(AND(AND($B9="A+",AE9=35),OR(J9=1,J9="M", J9="C")),750,0))

Would make it 0 if False...

"Woodi2" wrote:

Is it possible to make this function work?

=IF(AND(AND($B9="Z",AE9=35),OR(J9=1,J9="M",J9="C") ),1000,IF(AND(AND($B9="A+",AE9=35),OR(J9=1,J9="M", J9="C")),750))

I need to find out if Cell B9 = Z and if Cell AE9 = 35, if this true then
check cell J9 and check if it equals 1, M or C then return the value as 1000.
(that bit works OK)
I also want it to check if an alternative statement is true if the first is
false whereby it checks the the same set of cells but this time, check if B9
=A+, if Cell AE9 = 35, if this true then check cell J9 and check if it equals
1, M or C then return the value as 750. I can get each function to work
individually but dont know how to combine it into one function.

  #4  
Old April 30th, 2010, 01:40 PM posted to microsoft.public.excel.worksheet.functions
Steve Dunn
external usenet poster
 
Posts: 192
Default Multiple AND OR functions

There are simpler ways of stating your formula, but it currently does as
described. What your formula does not do, and you do not describe, is what
you want to happen when neither condition is true. Before we attempt to
simplify it, you need to clarify that.




"Woodi2" wrote in message
...
Is it possible to make this function work?

=IF(AND(AND($B9="Z",AE9=35),OR(J9=1,J9="M",J9="C") ),1000,IF(AND(AND($B9="A+",AE9=35),OR(J9=1,J9="M", J9="C")),750))

I need to find out if Cell B9 = Z and if Cell AE9 = 35, if this true then
check cell J9 and check if it equals 1, M or C then return the value as
1000.
(that bit works OK)
I also want it to check if an alternative statement is true if the first
is
false whereby it checks the the same set of cells but this time, check if
B9
=A+, if Cell AE9 = 35, if this true then check cell J9 and check if it
equals
1, M or C then return the value as 750. I can get each function to work
individually but dont know how to combine it into one function.


  #5  
Old April 30th, 2010, 01:43 PM posted to microsoft.public.excel.worksheet.functions
Steve Dunn
external usenet poster
 
Posts: 192
Default Multiple AND OR functions

One possibility:

=IF(AND(AE9=35,OR(J9=1,J9="M",J9="C")),IF(B9="Z", 1000, IF(B9="A+",750,0)))



"Woodi2" wrote in message
...
Is it possible to make this function work?

=IF(AND(AND($B9="Z",AE9=35),OR(J9=1,J9="M",J9="C") ),1000,IF(AND(AND($B9="A+",AE9=35),OR(J9=1,J9="M", J9="C")),750))

I need to find out if Cell B9 = Z and if Cell AE9 = 35, if this true then
check cell J9 and check if it equals 1, M or C then return the value as
1000.
(that bit works OK)
I also want it to check if an alternative statement is true if the first
is
false whereby it checks the the same set of cells but this time, check if
B9
=A+, if Cell AE9 = 35, if this true then check cell J9 and check if it
equals
1, M or C then return the value as 750. I can get each function to work
individually but dont know how to combine it into one function.


  #6  
Old April 30th, 2010, 01:47 PM posted to microsoft.public.excel.worksheet.functions
Steve Dunn
external usenet poster
 
Posts: 192
Default Multiple AND OR functions

Another possibility:

=(AE9=35)*((J9=1)+(J9="M")+(J9="C"))*((B9="Z")*100 0+(B9="A+")*750)


"Woodi2" wrote in message
...
Is it possible to make this function work?

=IF(AND(AND($B9="Z",AE9=35),OR(J9=1,J9="M",J9="C") ),1000,IF(AND(AND($B9="A+",AE9=35),OR(J9=1,J9="M", J9="C")),750))

I need to find out if Cell B9 = Z and if Cell AE9 = 35, if this true then
check cell J9 and check if it equals 1, M or C then return the value as
1000.
(that bit works OK)
I also want it to check if an alternative statement is true if the first
is
false whereby it checks the the same set of cells but this time, check if
B9
=A+, if Cell AE9 = 35, if this true then check cell J9 and check if it
equals
1, M or C then return the value as 750. I can get each function to work
individually but dont know how to combine it into one function.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:27 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.