Formula needed for true false multiple conditions

ItalianPlatinum

Well-known Member
Joined
Mar 23, 2017
Messages
857
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hello this is similar to a prior post I made but different so creating a new thread. Looking for a formula to give me a true or false statement as outlined below, need it to check if Date 1 and Date 2 are both < or equal to column 7 (TRUE) with exceptions where needs to ignore indicator F and indicator I date 2 populates as zero so another ignore. Date 1 and Date 2 are in general format if that matters

NameDate 1Date 2IndicatorFORMULA NEEDEDExpected to see2nd Business DAY minus 1
AAA
20220503​
20220503​
F
FALSE​
20220502
BBB
20220503​
20220503​
F
FALSE​
CCC
20220428​
0​
I
TRUE​
DDD
20220428​
0​
I
TRUE​
EEE
20220503​
0​
I
FALSE​
FFF
20220428​
20220428​
A
TRUE​
GGG
20220428​
20220503​
A
TRUE​
HHH
20220503​
20220503​
A
FALSE​
III
20220503​
20220428​
A
TRUE​
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
How about this in first row column 6
=IF(AND(B3<=G3,C3<=G3,D3<>"F",D3<>"I",C3>0),TRUE,FALSE)
 
Upvote 0
I think some of your results in Expected are incorrect.

Is this correct:

temporary (version 1).xlsb
ABCDEFGH
1NameDate 1Date 2IndicatorFORMULA NEEDEDExpected to see2nd Business DAY minus 1Alternative
2AAA2022050320220503FFALSE20220502FALSE
3BBB2022050320220503FFALSEFALSE
4CCC202204280ITRUETRUE
5DDD202204280ITRUETRUE
6EEE202205030IFALSEFALSE
7FFF2022042820220428ATRUETRUE
8GGG2022042820220503ATRUEFALSE
9HHH2022050320220503AFALSEFALSE
10III2022050220220428ATRUETRUE
Sheet2
Cell Formulas
RangeFormula
H2:H10H2=IF(OR(C2=0,D2="F",D2="I"),IF(B2<=$G$2,TRUE,FALSE),IF(AND(B2<=$G$2,C2<=$G$2),TRUE, FALSE))
 
Upvote 0
my expected results are correct. if both date 1 and date 2 for indicator A are >= 5/2 then False, if indicator I Date 1 is >= 5/2 then false. if anything else then its true. The date in the 2nd BD minus 1 field is in custom format the formula is this? so when I use your formula everything shows as true.

In your picture name GGG should be true because both dates arent greater or equal to 5/3

here is the formula for the BD2 minus 1
=TEXT(WORKDAY(EOMONTH(TODAY(),-1),2,X/x/x[HOLIDAYS.xlsx]HOLIDAYS'!$A$1:$A$1000)-1,"YYYYMMDD")
 
Upvote 0
Didn't your original OP say <= ?? -- "Date 1 and Date 2 are both < or equal to column 7 (TRUE)"
 
Upvote 0
yes you are correct my sign in post 4 is backwards. either way my table still holds. the expected column is correct
 
Upvote 0
Maybe you could restate ALL of the conditions correctly and we'll start again.
 
Upvote 0
Seems to me that we've provided the mechanism for the solution, all the poster needs to do is change the logic to suit there needs. I suggest that they try and make it work and come back if they are still having issues.
 
Upvote 0
neither formula works. see below:

NameDate 1Date 2IndicatorFORMULA 1FORMULA 2Expected to see2nd Business DAY minus 1
AAA
20220503​
20220503​
F
FALSE​
TRUE​
FALSE​
20220502
BBB
20220503​
20220503​
F
FALSE​
TRUE​
FALSE​
CCC
20220428​
0​
I
FALSE​
TRUE​
TRUE​
DDD
20220428​
0​
I
FALSE​
TRUE​
TRUE​
EEE
20220503​
0​
I
FALSE​
TRUE​
FALSE​
FFF
20220428​
20220428​
A
FALSE​
TRUE​
TRUE​
GGG
20220428​
20220503​
A
FALSE​
TRUE​
TRUE​
HHH
20220503​
20220503​
A
FALSE​
TRUE​
FALSE​
III
20220503​
20220428​
A
FALSE​
TRUE​
TRUE​

Formula 1: =IF(AND(B2<=H2,C2<=H2,D2<>"F",D2<>"I",C2>0),TRUE,FALSE)
Formula 2: =IF(OR(C2=0,D2="F",D2="I"),IF(B2<=$H$2,TRUE,FALSE),IF(AND(B2<=$H$2,C2<=$H$2),TRUE, FALSE))
2nd BD minus 1: =TEXT(WORKDAY(EOMONTH(TODAY(),-1),2,[HOLIDAYS.xlsx]HOLIDAYS!$A$1:$A$1000)-1,"YYYYMMDD")

clarifying the ask seeing there is confusion, reference the expected to see column as well
  1. indicator I and A in scope
  2. indicator F out of scope
  3. Date 1 and Date 2 if both are equal or less than 2nd BD minus 1 then (true)
  4. indicator I will not have a date 2, so only check Date 1 for indication I
I think the formula for date being in TEXT may be causing some issue
 
Upvote 0
if i paste values and convert the cell to number format this is what i get

NameDate 1Date 2IndicatorFORMULA 1FORMULA 2Expected to see2nd Business DAY minus 1
AAA
20220503​
20220503​
F
FALSE​
FALSE​
FALSE​
20220502
BBB
20220503​
20220503​
F
FALSE​
FALSE​
FALSE​
CCC
20220428​
0​
I
FALSE​
TRUE​
TRUE​
DDD
20220428​
0​
I
FALSE​
TRUE​
TRUE​
EEE
20220503​
0​
I
FALSE​
FALSE​
FALSE​
FFF
20220428​
20220428​
A
FALSE​
TRUE​
TRUE​
GGG
20220428​
20220503​
A
FALSE​
FALSE​
TRUE​
HHH
20220503​
20220503​
A
FALSE​
FALSE​
FALSE​
III
20220503​
20220428​
A
FALSE​
FALSE​
TRUE​
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,248
Members
452,623
Latest member
cliftonhandyman

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