Highlight a cell D3, if any number in K3:O3 matches?

Savwire

New Member
Joined
Dec 8, 2022
Messages
1
Office Version
  1. 2010
Platform
  1. Windows
Image here of what I'm trying to do, for a lottery spreadsheet:


If a number in the "Numbers Played" row shows up in the "Winning Numbers" section on the right, in the same row, I need it to highlight that number.

I thought I had it working, but in the 4th row, in the "Winning Numbers" section there is a 19, and there is also a 19 in the "Numbers Played" section, but it's not highlighting.

How can I get the "Numbers Played" row to highlight a number, if that number is in the same row on the right, in the "Winning Numbers" section?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Hi & welcome to MrExcel.
How about
Excel Formula:
=COUNTIF($K3:$P3,D3)
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Highlight a cell D3, if any number in K3:O3 matches?
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,215,032
Messages
6,122,770
Members
449,095
Latest member
m_smith_solihull

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