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.

[TABLE="width: 330"]
<colgroup><col><col><col></colgroup><tbody>[TR]
[TD] S
1 Missed a class more than once a month[/TD]
[TD]T
Missed a class in consecutive months[/TD]
[TD]U
Frequent truant[/TD]
[/TR]
[TR]
[TD]2 FALSE[/TD]
[TD]TRUE[/TD]
[TD]NO
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

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