Pick-3 Lottery Formula

robgrant

New Member
Joined
Jul 1, 2010
Messages
31
Here's the scoop:

I have an Excel Workbook with 5 years worth of pick-3 lottery data arranged in 4 columns: date (A4), pos 1 digit (B4), pos 2 digit (C4), pos 3 digit (D4).

I'd like to build a table that would show how many drawings it's been since each digit has been draw in each position. For example:


__|_1 pos_______|_2 pos_______|_3 pos_____

0 | #draws | #draws | #draws
1
2
3
4
5
6
7
8
9


The table should report the number of draws since last draw. So, if a number in a given position was drawn today, the table would report the number of draws as 0. If the number 8 as the first digit was drawn 3 days ago, the table would report a 3 in that cell.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Re: Help with Pick-3 Lottery Formula

OK, that works on my test sheet but you might have something on yours that doesn't quite match. As a test what happens if you try just the INDEX part of the formula in B2 copied down and across, i.e.

=INDEX(Data!$A$4:$A$2000,MATCH($A2,Data!B$4:B$2000,0))

I expect it to just pick up the value from column A for the relevant row so for B2 you should get

06/27/2010 Evening
 
Upvote 0
Re: Help with Pick-3 Lottery Formula

I thought I PM'd you that I removed the "evening" text from the date and set it to general format.


Here's what I get with your latest formula suggestion:

15efwhx.png
 
Upvote 0
Re: Help with Pick-3 Lottery Formula

It appears the cells contain the last dates when the digits were drawn. So how do I now convert the date to a number of days?
 
Upvote 0
Re: Help with Pick-3 Lottery Formula

Hi,

I re-did the dataset. Forgot that State Lottery had the data as a hyperlink and I converted to text. So, I made my own column of dates.

Next, I used you last formula and made a matrix that subtracts the result from today's date formatted as general.

Here's the result:

2m3fu4y.png
 
Upvote 0

Forum statistics

Threads
1,223,146
Messages
6,170,361
Members
452,323
Latest member
CrimsonCoure

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