Conditional Format Formula Issue for Coloring Cell

KuraiChikara

Board Regular
Joined
Nov 16, 2016
Messages
111
Office Version
  1. 2013
Platform
  1. Windows
Hello,
I don't use the "use a formula to determine which cells to format" functionality much in Conditional Formatting in Excel but I have a problem where it will help me.

Issue:
I think my problem is relatively simple but I don't know how to do it.
In cell A1 there is a word, say "Apples" and whatever name is put in cell B1, if A1 has the word "Apples" in it, then B1 would be highlighted RED.

Subsequently, if I changed the fruit in A1 to something else, I would eventually want to assign different colours to them which would be reflected in B1 IE: Bananas in A1= a B1 highlight to YELLOW, Pears in A1 = a B1 highlight to GREEN.
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
6,007
Office Version
  1. 2016
Platform
  1. Windows
Hi,

Use the same formula for each condition and color, change Apples to Bananas, Pears, Oranges or whatever you need:

Book3.xlsx
AB
6some apples
Sheet829
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B6Expression=COUNTIF(A6,"*apples*")textNO
 

jtakw

Well-known Member
Joined
Jun 29, 2014
Messages
6,007
Office Version
  1. 2016
Platform
  1. Windows
You're welcome, thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,130,083
Messages
5,639,980
Members
417,121
Latest member
DallyDally

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
Top