compare numbers

gronkette1

Board Regular
Joined
Mar 12, 2002
Messages
90
The winning numbers are: 01 04 07 10

My numbers are: 02 09 10 08
10 05 08 01 etc.

I want Excel to highlight the cell that each winning number is in.

thanks...
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
On 2002-05-13 05:53, gronkette1 wrote:
The winning numbers are: 01 04 07 10

My numbers are: 02 09 10 08
10 05 08 01 etc.

I want Excel to highlight the cell that each winning number is in.

thanks...

Lets say that the winning numbers are in A1:D1 and your numbers are in row 3 fron A3 on.

Select all of your own numbers.
Activate Format|Conditional Formatting.
Select Formula Is for Condition 1.
Enter as formula:

=COUNTIF($A$1:$D$1,A3)>0

Activate Format.
Select color from the Patterns tab.
Activate OK, OK.
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,205
Members
448,554
Latest member
Gleisner2

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