Well, I can't follow Nick Koutras, he was exceptional, and as far as I know his code was protected and I don't know whether the password had been cracked by anyone. I'm not inclined to even try to improve on his good work, I've cut down on lottery work.
I'm trying to get my head around what you are saying but the term 'frequency' only has meaning when the draws(s) you are counting between are clearly specified:- I must assume back to draw 1.
In order to give meaning to 'what came before, after and with' one must be, by definition diving into past history at a set draw at least one draw ago, so that there is in your list a draw that came before that draw and a draw that came after it. You cannot do that when you ask the question about the most recent draw ?
Suppose the most recent draw was 2005 then presumably you could choose draw 2004 and ask questions about the numbers in the draw after it (2005) ...Frequency since draw 1? Also ask questions about the numbers in draw 2003... Frequency since draw 1 ?
I'm also having trouble with the phrase "this feature will tell you how many times each of the other 48 numbers came up the very next draw"
If its a 6 ball lottery then only 6 balls can be involved in the very next draw, yes they are taken from the remaining 48, but there are only 6 to show frequencies for ?
The program I uploaded is not as slick, it was never intended to be. But it would do those things. Just set the draw number you are interested in (in the past) as a start draw, and set the 'count back over..' to an equal number, assuming you want freqiencies from draw 1.
You you would only need to enter the 6 numbers in the very next draw into the grey "Search for these numbers" box, and my program would display those frequencies for those numbers only. You could Copy the full result and paste special> values into the search for box. There would be no frequency sorting, but with only six balls counted it not too difficult to sort them by eye ?
Alternatively if you picked draw 2001 ( in your head only) as your draw of interest, but set the spreadsheet to start counting at 2003 and looked back 2003 draws , then copy>paste special>values the result from draw 2003 into the grey box , you will have got the frequencies of the next but one 'balls in the future' as seen from 2001. It is also the next but two from 2000, the next but three from 1999 .... your head decides that, surely ?
in the screenshot, the frequency counts shown are correct for draw 2004 (one draw in the future), draw 2003 (2 draws in the future), draw 2002 (three draws in the future) .. and so on ...
http://www.mediafire.com/view/f8ca0g6f279psfc/count.png
In this screenshot I'm interested in draw 2003 and what happenned in the draw before it 2002
http://www.mediafire.com/view/whbr767e0j2nc7b/count2.png
In this screenshot I'm interested in draw 2003 and what happenned in 2 draws before it 2001.
http://www.mediafire.com/view/zl9xhz21rb2wedx/counter3.png
Am I making any sense ? Not slick, but it does it.