Multiple IF, AND conditions to return True/False

avenkat

New Member
Joined
May 15, 2018
Messages
12
StatusMALMQLSALSQLFirst associated dateConditions True/False
Raw10/25/201610/10/201610/10/2016
Pursuing1/12/2017
4/18/2017

<tbody>
</tbody>
4/18/20172/28/2018

<tbody>
</tbody>

So these being my columns, I need a To fill the last column with conditions that satisfy

1) IF (AND(MQL<=MAL,MQl=Firstassocaited date),OR(Status="Raw","Rejected","Unqualified"),TRUE,FALSE)
For some reason this formula return with a a FALSE for everything (see first data set where the conditions are met!)
2) IF(AND(SAL<=MQL,SAL<=Firstassocaited date, MQL>MAL,Status=Pursuing),TRUE,FALSE)

Not sure if this formula makes sense .
I need to know if the conditions satisfy via dates and status is reflecting the process is followed then true else false.


Thanks so much for any pointers
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
dates are just decimal values so yes you can test dates with comparison operators like <, >, =, <> ... etc
 
Upvote 0
Maybe...


A
B
C
D
E
F
G
1
Status​
MAL​
MQL​
SAL​
SQL​
First associated date​
Conditions True/False​
2
Raw​
10/25/2016​
10/10/2016​
10/10/2016​
TRUE​
3
Pursuing​
01/12/2017​
04/18/2017​
04/18/2017​
02/28/2018​
FALSE​
4

Formula in G2 copied down
=IF(AND(AND(C2<=B2,C2=F2),OR(A2={"Raw";"Rejected";"Unqualified"})),TRUE,FALSE)

M.
 
Upvote 0
Hi,

If I understand correctly, try this:


Book1
ABCDEFGH
1StatusMALMQLSALSQLFirst associated dateConditions True/False
2Raw10/25/201610/10/201610/10/2016TRUE
3Pursuing1/12/20174/18/20174/18/20172/28/2018TRUE
Sheet72
Cell Formulas
RangeFormula
H2=OR(AND(C2<=B2,C2=G2,OR(A2={"Raw","Rejected","Unqualified"})),AND(E2<=C2,E2<=G2,C2>B2,A2="Pursuing"))


H2 formula copied down.
 
Last edited:
Upvote 0
I am still getting a False, for conditions that look true.
My data looks like this
10/10/17 0:0010/25/17 10:5610/10/17 11:05#REF!
11/14/17 0:0011/16/17 7:2411/14/17 10:5111/16/17 7:24FALSE
1/11/18 0:001/11/18 5:451/11/18 5:451/11/18 9:33FALSE
11/22/17 0:0011/27/17 11:5511/22/17 16:33FALSE
10/5/17 0:0010/6/17 6:0310/5/17 9:59FALSE

<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
I am still getting a False, for conditions that look true.
My data looks like this
10/10/17 0:0010/25/17 10:5610/10/17 11:05#REF!
11/14/17 0:0011/16/17 7:2411/14/17 10:5111/16/17 7:24FALSE
1/11/18 0:001/11/18 5:451/11/18 5:451/11/18 9:33FALSE
11/22/17 0:0011/27/17 11:5511/22/17 16:33FALSE
10/5/17 0:0010/6/17 6:0310/5/17 9:59FALSE

<tbody>
</tbody>

This data sample doesn't correspond to the data sample in your original post.
Could you provide a better sample along with expected results?

M.
 
Upvote 0
Sorry if it was unclear !.
Contact StatusMember First Associated DateTimestamp Lifecycle MALTimestamp Lifecycle MQLTimestamp Lifecycle SALTimestamp Lifecycle SQLTimestamp Lifecycle SAOTimestamp Lifecycle SQOMAL Stage TRUE
Rejected10/10/17 0:0010/25/17 10:5610/10/17 11:05
Unqualified11/14/17 0:0011/16/17 7:2411/14/17 10:5111/16/17 7:24FALSE
Pursuing1/11/18 0:001/11/18 5:451/11/18 5:451/11/18 9:33FALSE
Rejected11/22/17 0:0011/27/17 11:5511/22/17 16:33FALSE

<tbody>
</tbody>


I need to prove that a row is following the process of what status it is in.
If status is Rejected/raw/Unqualified then the conditions satisfied should be MQL<=MAL, MQL=First responded date. If this is true then TRUE else FALSE
If status is Pursuing/Restored/New then the conditions satisfied should be SAL<=MQL, MQL>MAL,MQL=first responded date . IF true then TRUE else FALSE

Currently when I do MQL<MAL , it comes to true but when I add/do (MQL=First responded date) it comes to False even if the dates are same,.
I changed the date format to without time but still i get a False
 
Last edited:
Upvote 0
Hi,

Your description and setup has changed in Post #7 compared to OP, Also, I assume the TIME part of the Time Stamps is irrelevant and you're Only looking at the Date:


Book1
ABCDEFGHI
1Contact StatusMember First Associated DateTimestamp Lifecycle MALTimestamp Lifecycle MQLTimestamp Lifecycle SALTimestamp Lifecycle SQLTimestamp Lifecycle SAOTimestamp Lifecycle SQOMAL Stage
2Rejected10/10/2017 0:0010/25/2017 10:5610/10/2017 11:05TRUE
3Unqualified11/14/2017 0:0011/16/2017 7:2411/14/2017 10:5111/16/2017 7:24TRUE
4Pursuing1/11/2018 0:001/11/2018 5:451/11/2018 5:451/11/2018 9:33FALSE
5Rejected11/22/2017 0:0011/27/2017 11:5511/22/2017 16:33TRUE
Sheet72
Cell Formulas
RangeFormula
I2=OR(AND(INT(VALUE(D2))<=INT(VALUE(C2)),INT(VALUE(D2))=INT(VALUE(B2)),OR(A2={"Rejected","Raw","Unqualified"})),AND(INT(VALUE(E2))<=INT(VALUE(D2)),INT(VALUE(D2))>INT(VALUE(C2)),INT(VALUE(D2))=INT(VALUE(B2)),OR(A2={"Pursuing","Restored","New"})))


Formula copied down.
 
Upvote 0
Thank you Marcelo, Jtakw.

I had intended it to put some proxy value in the OP. On retrospect it looks like i should have just copied a part of my data in OP.

Thank you for the output. This works but I still get an error in D2=B2 thus making my formula output as False.

I am going to try using INT and lets see how that works.
 
Upvote 0
You're welcome.

I must have had a brain freeze earlier, since I'm using INT in my formula, VALUE was Not needed, updated formula here:


Book1
ABCDEFGHI
1Contact StatusMember First Associated DateTimestamp Lifecycle MALTimestamp Lifecycle MQLTimestamp Lifecycle SALTimestamp Lifecycle SQLTimestamp Lifecycle SAOTimestamp Lifecycle SQOMAL Stage
2Rejected10/10/2017 0:0010/25/2017 10:5610/10/2017 11:05TRUE
3Unqualified11/14/2017 0:0011/16/2017 7:2411/14/2017 10:5111/16/2017 7:24TRUE
4Pursuing1/11/2018 0:001/11/2018 5:451/11/2018 5:451/11/2018 9:33FALSE
5Rejected11/22/2017 0:0011/27/2017 11:5511/22/2017 16:33TRUE
Sheet72
Cell Formulas
RangeFormula
I2=OR(AND(INT(D2)<=INT(C2),INT(D2)=INT(B2),OR(A2={"Rejected","Raw","Unqualified"})),AND(INT(E2)<=INT(D2),INT(D2)>INT(C2),INT(D2)=INT(B2),OR(A2={"Pursuing","Restored","New"})))
 
Upvote 0

Forum statistics

Threads
1,214,814
Messages
6,121,711
Members
449,049
Latest member
THMarana

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top