Note: The other languages of the website are Google-translated. Back to English
English English

 How to highlight winning lottery numbers in Excel worksheet?

To check a ticket if winning the lottery numbers, you can check it one by one number. But, if there are multiple tickets need to be checked, how could you solve it quickly and easily? This article, I will talk about highlighting the winning lottery numbers to check if win the lottery as below screenshot shown.

Highlight winning lottery numbers with Conditional Formatting in Excel

Highlight winning lottery numbers with Conditional Formatting in Excel



The normal Conditional Formatting feature can help you to deal with this task as quickly as you can. Please do the following steps:

1. Select the lottery numbers of the tickets, and then click Home > Conditional Formatting > New Rule, see screenshot:

2. In the New Formatting Rule dialog box, select Use a formula to determine which cells to format option in the Select a Rule Type list box, and then enter this formula: =COUNTIF($B$2:$G$2,B6)>=1 into the Format values where this formula is true text box, see screenshot:

Note: In the above formula, B2:G2 is the range contains the winning lottery numbers, and B6 is the first cell of the ticket numbers you want to highlight the winning numbers. Please change them to your own.

3. Then click Format button to go to the Format Cells dialog box, under the Fill tab, please select a color to highlight the winning lottery numbers, see screenshot:

4. And then click OK > OK to close the dialogs, and now, the winning lottery numbers have been highlighted as following screenshot shown:


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom


Comments (4)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
I am trying to create your Lottery Checker in my Excel, however it does not seem to function. I would be grateful for your advice? Thank you David
This comment was minimized by the moderator on the site
Hello David,Sorry for the inconvenience. The formula in the article =COUNTIF($B$2:$G$2,B6)>=1 is clearly wrong. Please use the new formula: =COUNTIF($B$1:$G$1,B6)>=1. Please see the screenshots. Hope it can solve your problem. Have a nice day.Sincerely,Mandy
This comment was minimized by the moderator on the site
Thanks, i got it to work, but :-), i change to have two rules, to accommodate for a single powerball number at the end

first rule =COUNTIF($B$1:$f$1,B6)>=1
second rule =COUNTIF($g$1,g6)>=1

The above seem to work great for the 5 number plus a powerball number

But again thanks for sharing this Rule, I could have never figured this out without your help, thanks.

This comment was minimized by the moderator on the site
FYI , rule 1 , i highlighted the Rolls B - F of my tickets i entered for the 5 Ticket numbers

Rule 2 i highlighted Roll G for the Power Ball numbers cells

I hope this make since, but it works great for me so far.

Maplewood Vic
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations