Conditional Formatting: If Cell contains Word TRUE or FALSE

Barlew2

New Member
Joined
Jan 1, 2021
Messages
8
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hello,

Problem simplified
Cell A1 will contain either the word TRUE or FALSE. I want B1 to change colour when A1 contains either TRUE or FALSE. True Red and False Blue.

Believe me I have tried! It seems any other text is fine, but when setting up Conditional Formatting to look for the text TRUE or FALSE, it seems to be ignoring it??!!

The background to this problem is that I'm exporting the content of a user completed userform into a sheet and if Tick boxes have been checked, the cell will contain TRUE and if not FALSE. Looking to trigger Conditional Formation based on these.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Are these the text values "TRUE" and "FALSE", or the boolean values of TRUE and FALSE?
If text, you need the double-quotes around the words in your Conditional Formatting formula.
If boolean, you need to leave the double-quotes out of your formulas.
 
Upvote 0
Solution
Hi Joe, these are text values...which made me think about formatting the A1 for text....which worked!

Double quotes didn't work, but thanks for the reply :)
 
Upvote 0
You are welcome.

It is all dependent on how you are entering the data, and how you have written the formulas (since you did not provide that information, we can only guess, but I listed the possible options).
 
Upvote 0

Forum statistics

Threads
1,214,879
Messages
6,122,065
Members
449,064
Latest member
scottdog129

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