I don't understand why my formula won't work?

Holly92

New Member
Joined
Jun 14, 2018
Messages
14
Hi! If anyone could help with this, that would be very very helpful!

I am trying to identify in Cell U2, people who either missed a class many times in once month, or consecutively missed classes in the following months. So I would like Cell U2 to say "TRUE" if either S1 or T1 say "TRUE". I have inputted the following formula:

=IF(OR(S2="TRUE",T2="TRUE"),"YES","NO")

However, it doesn't pick up the "TRUES" in Column T. It will only return "TRUE" if column S has "TRUE" in it.

S
1 Missed a class more than once a month
T
Missed a class in consecutive months
U
Frequent truant
2 FALSETRUENO

<colgroup><col><col><col></colgroup><tbody>
</tbody>

Would anyone be able to offer advice on how to tweek this formula so that is returns "TRUE" in Cell U2, as long as there is a "TRUE" in either the S or T column?

Thank you in advance!

Best wishes,

Holly
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
You don't want the if's logical test to be against a string value.

Code:
=IF(OR(S2="X",T2="X")=TRUE,"Yes","No")
 
Last edited:
Upvote 0

Excel 2010
RST
2TRUETRUETRUE
3YES
4
2e
Cell Formulas
RangeFormula
R2=OR(S2=TRUE,T2=TRUE)
R3=IF(OR(S2=TRUE,T2=TRUE),"YES","NO")


True is a logical result not Text.
 
Upvote 0
It looks like it is right...

I tried something that made it work.

I took away the quotes in the OR function.

It doesn't seem like that would matter, but, it worked now...

=IF(OR(S2=TRUE,T2=TRUE),"YES","NO")
 
Upvote 0
Ah of course, TRUE is not text! I would have bene stuck on this forever. Thank you very much!
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,577
Members
449,039
Latest member
Arbind kumar

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