Highlight the most popular numbers from lottery tickets I bought

Samgraphics

Board Regular
Joined
Jan 9, 2022
Messages
52
Office Version
  1. 2011
Platform
  1. MacOS
So I don’t know if this is possible or if this is an effective way to do this or if this helps really. I’m using this countif formula to highlight lottery numbers that match from tickets I bought.
=COUNTIF($C$4:$H$4,C10)

In a different worksheet I’m using a method I saw on a MrExcel youtube tutorial to find the most popular numbers using a pivot table and it shows you the numbers that are the most popular and it can show you by year, month, quarter, and so on, which got me thinking of looking at the numbers that usually match on the tickets I bought. I was thinking it would show me the most popular matched numbers from my tickets. You never know, there might be something there, or not, just wondering how you would go about doing that or if there’s a way to do that.

Below is. a snippet of the sheet that highlights the lottery number matches and the table that shows the most popular numbers. Is there a way I can combine the two so that I can find the most popular numbers that get matches from the tickets I buy?
MOST POPULAR NUMBERS UPDATED.xlsx
ABCDEFGHIJKLMNOPQRSTUV
1
2YEAR2022
3
4Count of TYPE
5Row LabelsTotal
634
752
861
941
1081
1171
1221
13Grand Total11
Sheet4


It didn't include the slicer and other stuff.

HIGHLIGHT THE LATEST LOTTERY MATCHES.xlsx
ABCDEFGHI
1LOTTERY TICKET PURCHASE HISTORY
2
3LATEST DRAW
4NO 1NO 2NO 3NO 4NO 5BONUS 1BONUS 2
514123234910
6
7
8DATENO 1NO 2NO 3NO 4NO 5BONUS 1BONUS 2WINNERS
911/22/21156799105
10157897120
111912333491215
LotteryTable
Cell Formulas
RangeFormula
I9:I11I9=IFERROR(VLOOKUP(--(SUMPRODUCT(COUNTIF(B9:F9,$B$5:$F$5))&SUMPRODUCT(--(G9:H9=TRANSPOSE($G$5:$H$5)))),--$M$26:$P$38,4,0),0)
Press CTRL+SHIFT+ENTER to enter array formulas.
Named Ranges
NameRefers ToCells
number07=tbllottery[BONUS 2]I9
number08=tbllottery[BONUS 1]I9
number09=tbllottery[NO 5]I9
numberCheck=LotteryTable!$B9:INDEX(number09,COUNT(number09),1)I9
numberCheck02=LotteryTable!$G9:INDEX(number08,COUNT(number08),1)I9
numberCheck03=LotteryTable!$H9:INDEX(number07,COUNT(number07),1)I9
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G9:H11Expression=COUNTIF($G$5:$H$5,G9)textNO
B9:F11Expression=COUNTIF($B$5:$F$5,B9)textNO
I9:I546Expression=SUMPRODUCT(COUNTIF(G9:H9,$G$5:$H$5))=2textNO
I9:I546Expression=SUMPRODUCT(COUNTIF(B9:F9,$B$5:$F$5)) + SUMPRODUCT(COUNTIF(G9:H9,$G$5:$H$5))>=3textNO


I don’t know if I’m being clear enough. Basically, after the countif formula shows me all the numbers that match if there was a way to put all that in a pivot table to be able to see which of my numbers usually hit. I know it’s more or less the same as the most popular numbers pivot table but it’s of the data of all the winning numbers over a period of time. I wanted to see a similar thing but only with the numbers from my tickets that matched.

I was wondering if anyone can please help me see/find a way to do that?

Thank you so much
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,214,641
Messages
6,120,684
Members
448,977
Latest member
dbonilla0331

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