Conditional Formating , Proper Formulas?

cyote101

Active Member
Joined
Dec 11, 2004
Messages
315
hello all, thanks for your help on the last one. I have a new one now. How would i write the following for a conditional Format

if cell value is equal to any of the values in cells a1,a2,a3,a4,a5,d1,d4,d5
Then the format will be applied to the matching cells

Thanks
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi

In A1 enter the conditional format, fomula is

Code:
=COUNTIF($A$1:$A$5,A1)+COUNTIF($D$4:$D$5,A1)+COUNTIF($D$1,A1)>1

and the format required.

Copy the cell, and paste format to the other cells (A2:A5,d1,D4:D5)


HTh

Tony
 
Upvote 0
In acw's formula change the >1 to >0 or drop that part completely.
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,982
Members
449,201
Latest member
Lunzwe73

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