PC Review


Reply
Thread Tools Rate Thread

Counting When Last Occurance

 
 
Paul Black
Guest
Posts: n/a
 
      15th Jul 2009
Hi everyone,

I have a table of lottery numbers where 6 balls are drawn each draw.
The table is from D3:i whatever and obviously grows constantly.
The draw number is in column B with the last draw at the bottom.
What I would like is to list the numbers from 1 to 49 starting in S3
and going down and next to each number have the number of draws since
that particular number has been drawn please. So basically, start at
the bottom right cell of the table and work left and then up to find
out how many draws it has been since each of the numbers from 1 to 49
have been drawn.

Thanks in advance.
Paul
 
Reply With Quote
 
 
 
 
paul_black27@hotmail.com
Guest
Posts: n/a
 
      16th Jul 2009
On Jul 15, 2:18*pm, Paul Black <paul_blac...@hotmail.com> wrote:
> Hi everyone,
>
> I have a table of lottery numbers where 6 balls are drawn each draw.
> The table is from D3:i whatever and obviously grows constantly.
> The draw number is in column B with the last draw at the bottom.
> What I would like is to list the numbers from 1 to 49 starting in S3
> and going down and next to each number have the number of draws since
> that particular number has been drawn please. So basically, start at
> the bottom right cell of the table and work left and then up to find
> out how many draws it has been since each of the numbers from 1 to 49
> have been drawn.
>
> Thanks in advance.
> Paul


Has anyone got any ideas please.
 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      16th Jul 2009
If desired, send your file to my address below along with this msg and
a clear explanation of what you want and before/after examples.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
<(E-Mail Removed)> wrote in message
news:b8c614ec-1c28-4287-908d-(E-Mail Removed)...
On Jul 15, 2:18 pm, Paul Black <paul_blac...@hotmail.com> wrote:
> Hi everyone,
>
> I have a table of lottery numbers where 6 balls are drawn each draw.
> The table is from D3:i whatever and obviously grows constantly.
> The draw number is in column B with the last draw at the bottom.
> What I would like is to list the numbers from 1 to 49 starting in S3
> and going down and next to each number have the number of draws since
> that particular number has been drawn please. So basically, start at
> the bottom right cell of the table and work left and then up to find
> out how many draws it has been since each of the numbers from 1 to 49
> have been drawn.
>
> Thanks in advance.
> Paul


Has anyone got any ideas please.

 
Reply With Quote
 
paul_black27@hotmail.com
Guest
Posts: n/a
 
      17th Jul 2009
On Jul 16, 2:47*pm, "Don Guillett" <dguille...@austin.rr.com> wrote:
> * * * If desired, send your file to my address below along with this msg and
> a clear explanation of what you want and before/after examples.
>
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> dguille...@austin.rr.com<paul_blac...@hotmail.com> wrote in message
>
> news:b8c614ec-1c28-4287-908d-(E-Mail Removed)...
> On Jul 15, 2:18 pm, Paul Black <paul_blac...@hotmail.com> wrote:
>
> > Hi everyone,

>
> > I have a table of lottery numbers where 6 balls are drawn each draw.
> > The table is from D3:i whatever and obviously grows constantly.
> > The draw number is in column B with the last draw at the bottom.
> > What I would like is to list the numbers from 1 to 49 starting in S3
> > and going down and next to each number have the number of draws since
> > that particular number has been drawn please. So basically, start at
> > the bottom right cell of the table and work left and then up to find
> > out how many draws it has been since each of the numbers from 1 to 49
> > have been drawn.

>
> > Thanks in advance.
> > Paul

>
> Has anyone got any ideas please.


Thanks,

I will put something together over the weekend if possible.

Regards,
Paul
 
Reply With Quote
 
Lars-Åke Aspelin
Guest
Posts: n/a
 
      17th Jul 2009
On Wed, 15 Jul 2009 06:18:14 -0700 (PDT), Paul Black
<(E-Mail Removed)> wrote:

>Hi everyone,
>
>I have a table of lottery numbers where 6 balls are drawn each draw.
>The table is from D3:i whatever and obviously grows constantly.
>The draw number is in column B with the last draw at the bottom.
>What I would like is to list the numbers from 1 to 49 starting in S3
>and going down and next to each number have the number of draws since
>that particular number has been drawn please. So basically, start at
>the bottom right cell of the table and work left and then up to find
>out how many draws it has been since each of the numbers from 1 to 49
>have been drawn.
>
>Thanks in advance.
>Paul


If you have the number 1,2,3, ..., 49 in cells S3, S4, S5, ... S51 you
may try the following formula in cell T3:

=IF(OR(D$3:I$1000=S3),MAX(ROW(D$3$1000)*(D$3$1000<>""))-MAX(ROW(D$3:I$1000)*(MMULT(--(D$3:I$1000=S3),{1;1;1;1;1;1})>0)),"newer
drawn")

Note: This is an array formula that has to be confirmed by
CTRL+SHIFT+ENTER rather than just ENTER.

Change the 1000 to suit the size of your data in columns D to I.

Copy the formula down until cell T51.

The numbers in column T now show the number of draws since the
corresponding numbers in column S were drawn.
0 means that the number was in the last draw.

If a number has never been drawn, the text "never drawn" is displayed
in column T.

Hope this helps / Lars-Åke
 
Reply With Quote
 
paul_black27@hotmail.com
Guest
Posts: n/a
 
      20th Jul 2009
On Jul 17, 1:26*pm, Lars-Åke Aspelin <lar...@REMOOOVE.telia.com>
wrote:
> On Wed, 15 Jul 2009 06:18:14 -0700 (PDT),PaulBlack
>
> <paul_blac...@hotmail.com> wrote:
> >Hi everyone,

>
> >I have a table of lottery numbers where 6 balls are drawn each draw.
> >The table is from D3:i whatever and obviously grows constantly.
> >The draw number is in column B with the last draw at the bottom.
> >What I would like is to list the numbers from 1 to 49 starting in S3
> >and going down and next to each number have the number of draws since
> >that particular number has been drawn please. So basically, start at
> >the bottom right cell of the table and work left and then up to find
> >out how many draws it has been since each of the numbers from 1 to 49
> >have been drawn.

>
> >Thanks in advance.
> >Paul

>
> If you have the number 1,2,3, ..., 49 in cells S3, S4, S5, ... S51 you
> may try the following formula in cell T3:
>
> =IF(OR(D$3:I$1000=S3),MAX(ROW(D$3$1000)*(D$3$1000<>""))-MAX(ROW(D$3:I$1*000)*(MMULT(--(D$3:I$1000=S3),{1;1;1;1;1;1})>0)),"newer
> drawn")
>
> Note: This is an array formula that has to be confirmed by
> CTRL+SHIFT+ENTER rather than just ENTER.
>
> Change the 1000 to suit the size of your data in columns D to I.
>
> Copy the formula down until cell T51.
>
> The numbers in column T now show the number of draws since the
> corresponding numbers in column S were drawn.
> 0 means that the number was in the last draw.
>
> If a number has never been drawn, the text "never drawn" is displayed
> in column T.
>
> Hope this helps / Lars-Åke


Hi Lars-Åke,

Your formula works great thank you.

Regards,
Paul
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting occurance of >0 in two columns cbrown Microsoft Excel Worksheet Functions 3 7th Aug 2009 05:15 PM
Counting the Excced occurance... =?Utf-8?B?V2lsbA==?= Microsoft Excel Misc 2 25th Jun 2007 09:38 PM
Occurance Counting =?Utf-8?B?UnVzdHk=?= Microsoft Excel Worksheet Functions 6 6th Aug 2006 01:16 PM
counting the occurance sri Microsoft Excel Worksheet Functions 5 29th Oct 2003 07:34 PM
counting occurance of a name in a cell Microsoft Excel Programming 1 29th Oct 2003 07:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:11 PM.