Conditional Formatting If Other Column Contains Specific Text

Ampharos

New Member
Joined
May 13, 2013
Messages
16
Hi all,

My column C contains "Graduation Dates" and D contains Call Status (whether I have called). I want my conditional formatting to highlight my column C cells based on the following ideas:
  • No formatting if date is far out
  • Yellow for date is next week so I know I'll need to call soon
  • Red for if date is today or in the past meaning I must call
  • Green if I have called them meaning the task is done. This should have priority over the others (e.g., if a date is in the past but I called, it should be green).
I can't figure out the last one. I want C5 (the date 3/21/22) to be green because column D status says "3. Called - Contacted". I guess in this case I called early. What should the formula be in my conditional formatting manager?

Thank you so much in advance!
 

Attachments

  • conditional.png
    conditional.png
    24.4 KB · Views: 24

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi,

What are the different phrases you use in the "Call Status" column ?

Also, can you show some samples with expected results ?
 
Upvote 0
Hi,

What are the different phrases you use in the "Call Status" column ?

Also, can you show some samples with expected results ?
Thanks jtakw.

There are three statuses via data validation list:
1. Not Called, 2. Called - VM, 3. Called - Contacted

The result should look like the attached (I deleted cond formatting, formatted manually).
 

Attachments

  • cond2.png
    cond2.png
    4.8 KB · Views: 13
Upvote 0
Are "Called - VM" and "Called - Contacted" Both considered task is done, therefore, Green ?
 
Upvote 0
Thanks for clarifying.

3 CF Formulas, one for Each color.

Make sure, after you enter all three CF conditions, the condition for GREEN is top of the list in CF

Book3.xlsx
CD
1Grad DateCall Status
23/21/20223. Called - Contacted
33/16/20221. Not Called
43/19/20223. Called - Contacted
53/27/2022
63/26/2022
Sheet1053
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:C6Expression=LEFT(D2)="3"textNO
C2:C6Expression=C2<=TODAY()textNO
C2:C6Expression=C2<=TODAY()+7textNO
 
Upvote 0
Solution
Thanks for clarifying.

3 CF Formulas, one for Each color.

Make sure, after you enter all three CF conditions, the condition for GREEN is top of the list in CF

Book3.xlsx
CD
1Grad DateCall Status
23/21/20223. Called - Contacted
33/16/20221. Not Called
43/19/20223. Called - Contacted
53/27/2022
63/26/2022
Sheet1053
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:C6Expression=LEFT(D2)="3"textNO
C2:C6Expression=C2<=TODAY()textNO
C2:C6Expression=C2<=TODAY()+7textNO
Thanks for your help, this was the solution! It was an easier formula than what I was using and also highlighted my priority (order of the rules in the manager) was incorrect.
 
Upvote 0
You're welcome, thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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