Conditional formatting for when one cell does not contain a + and another does = true.

Oshia

New Member
Joined
Dec 1, 2024
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hiya,

I'm attempting to change the colour of Cell D based on if Cell A doesn't contain a + symbol and Cell D = true, I've managed something similar for when it Cell A does contain a + using the following formula in the conditional formatting =AND(COUNT(SEARCH("*+*",$A2)),($D2=TRUE)) applied to =$D$2:$D$150, I just need, I suppose, the opposite of the first condition. Any ideas?
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Maybe...
Excel Formula:
=AND(NOT(COUNT(SEARCH("*+*",$A2))),($D2=TRUE))
 
Upvote 0
Hi,

I've tried that, and it's not working. Basically I am trying to get an accurate guest list count, I've thrown a sample range below. My plan has been to have any cell that correlates to two people be a different colour so I can count the cells based on colour, not easy, and then double the number given for cells associated with 2 people. I don't know if anyone might have an suggestions on easier ways to do that or something different to get my original question working.
GuestRSVP
AliceTRUE
Bobby + 1TRUE
Carol + DeanTRUE
EllaFALSE
 
Upvote 0
I've tried that, and it's not working

Works for me

Book2
ABCD
1
2AliceTRUE
3Bobby + 1TRUE
4Carol + DeanTRUE
5EllaFALSE
6EllaTRUE
7Ella+TRUE
8
9
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:D7Expression=AND(NOT(COUNT(SEARCH("*+*",$A2))),($D2=TRUE))textNO
 
Upvote 0
Hiya,

My apologies, I had two ==, It's way too late for this. Thank you so much for your help it works perfectly fine. Have a great evening!
 
Upvote 0
@Micron the OP is looking for doesn't find +
Sorry, don't understand that. To me, OP means original post, or original poster depending on the context. When I read that either way it doesn't make sense to me. Are you saying OP is not looking for a plus sign in a string in a cell? I thought that was the case and what I wrote worked for me as a CF rule.
 
Upvote 0
Are you saying OP is not looking for a plus sign in a string in a cell? I thought that was the case and what I wrote worked for me as a CF rule.
That is exactly what I am saying, the OP (either original poster or original post) request is
Cell A does contain a + using the following formula in the conditional formatting =AND(COUNT(SEARCH("*+*",$A2)),($D2=TRUE)) applied to =$D$2:$D$150, I just need, I suppose, the opposite of the first condition. Any ideas?
The formula you posted for me highlights the cells that do have a + sign in column A and a TRUE in column D

Book1
ABCD
1AliceTRUE
2Bobby + 1TRUE
3Carol + DeanTRUE
4EllaFALSE
5EllaTRUE
6Ella+TRUE
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D1:D6Expression=AND(IF(FIND("+",A1,1),D1=TRUE))textNO
 
Upvote 0

Forum statistics

Threads
1,224,272
Messages
6,177,632
Members
452,786
Latest member
k3calloway

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