You are on page 1of 6

Forum Question Forums Excel Questions formula required to make lotto frequency calculator

Become a Registered Member (free) to remove the ad that appears in the top post.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can
post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the
selection below.
complete the reset.
formula required to make lotto frequency calculator
This is a discussion on formula required to make lotto frequency calculator within the Excel Questions forums, part of the
Question Forums category; Greetings all. I need advice on how to structure a formula to calculate the frequency of a number up to
...

Register
Results 1 to 6 of 6
Find Love That Lasts
Forever!
TopTipsNews
How to donate money
to the right
organization TopTipsNews
How to travel cheaper
last minute
BWNToday
Hotel proud to be
named world's worst
hotel
Forum
Also on the Web
formula required to make lotto frequency calculator http://www.mrexcel.com/forum/excel-questions/519276-formula-requir...
1 of 6 6/3/2014 6:54 PM
TopTipsNews
Ranking of the 10
biggest banks in 2014
TopTipsNews
Top tips to choose the
right bank for your
student loan
Jan 5th, 2011, 11:53 PM
formula required to make lotto frequency calculator
Greetings all. I need
structure a formula to
calculate the frequency
of a number up to and
including any given
draw. If I use COUNT it
returns all the values in
a column. what I want
to do is specify a past
draw, find the cell
containing the info and
then calculate the
frequency onwards
from that point .
example all the draws
for #1 are in column A.
and the Draw to be
searched from is typed
into B1.
A B
3073 3070
2072
3071
3070
3069
3068
The total COUNT
number is 6. i need the
formula to find 3070
and THEN count from
that point onward. The
result would be 3.
(3070, 3069 and
3068).
This way I can input
any past draw number
into my calculator and
it would automatically
calculate how many
#1
Join Date:
Posts:
Nov 2010
21
Allegre
New Member
formula required to make lotto frequency calculator http://www.mrexcel.com/forum/excel-questions/519276-formula-requir...
2 of 6 6/3/2014 6:54 PM
times the number, say
1 was drawn up until
that point in time.
I suspect I need some
combo of COUNT and
MATCH
Share
Jan 6th, 2011, 12:08 AM
Re: formula required to make lotto frequency calculator
try array formula
=SUM(IF(A1:A6<=B1,1,0))
use shift/control/enter
i assume the second item should be 3072 not 2072
#2
Join Date:
Location:
Posts:
May 2009
Texas, USA
1,288
Bill Rockenbach
Board Regular
Bill
Use Option Explicit to avoid chasing code.
Share
Jan 6th, 2011, 07:07 PM
Re: formula required to make lotto frequency calculator
right that's 3072
Thanks for the input, but that formula returned a nonsensical
answer. When I cut and pasted it and when i used control-shift-enter.
I used the formula help and got this definition:
Checks whether a condition is met and returns one value if true
another if false.
This formula can only return 1 of 2 answers when I need it to
#3
Join Date:
Posts:
Nov 2010
21
Allegre
New Member
formula required to make lotto frequency calculator http://www.mrexcel.com/forum/excel-questions/519276-formula-requir...
3 of 6 6/3/2014 6:54 PM
actually count the cells with data in them including and under the
result in the rest of the column. So using the previous example say I
search for 3071 find it and then the formula counts that cell and the
remainng cells giving a result of 4.
It would have to be reworked to accomplish what I'm trying to do.
which would be something like....
={IF(A:A=B1,TRUE(COUNT in A:A from result cell forwards,FALSE))}
So Formula searches column A, A:A and checks whether a condition
is met in B1. B1 is true, so formula then counts from that point all
following values and returns the count number ie 4, because
including 3071 there are 4 cells with data in them. Returns nothing if
false.
Whatever way I look at it some sort of count function has to be
incorporated.
Any other suggestions?
Share
Jan 6th, 2011, 07:14 PM
Re: formula required to make lotto frequency calculator
Bill's suggestion should work for you if correctly entered but you
don't really need an array formula, try
=COUNTIF(A:A,"<="&B1)
#4
Join Date:
Location:
Posts:
Mar 2005
England
19,789
barry houdini
MrExcel MVP
Moderator
Share
Jan 6th, 2011, 07:48 PM
Too true. Bills formula did indeed work so hats off to him. Thanks
Bill. I couldn't believe the answer was so simple and straight forward
and was wondering why someone would post something that hasn't
been shown to work. I wasn't doing the shift/control/enter part
correctly or my keyboard is stuffed. I must have tried his formula no
less then 10 times. I'll try yours too for an alternative.
#5
Join Date:
Posts:
Nov 2010
21
Allegre
New Member
Share
formula required to make lotto frequency calculator http://www.mrexcel.com/forum/excel-questions/519276-formula-requir...
4 of 6 6/3/2014 6:54 PM
Jan 6th, 2011, 08:17 PM
Re: formula required to make lotto frequency calculator
because it doesn't count empty cells. I had a problem of an error
message resulting when I used A:A. The reason was it was counting
to infinity. If i specified A1:A200 it would count to A200 even though
50 cells were empty. Using that formula I would constantly have to
edit it as the column is filled with more data, just to maintain
accuracy. So this one is better. In any case thank you both for your
time an effort.
I would be in an insane asylum without this forum.
cheers
#6
Join Date:
Posts:
Nov 2010
21
Allegre
New Member
Last edited by Allegre; Jan 6th, 2011 at 08:19 PM.
Share
Reddit
StumbleUpon
Like this thread? Share it with others
You may not post new
You may not post replies
You may not post
attachments
You may not edit your posts

Posting Permissions
BB code is On
Smilies are On
[IMG] code is On
[VIDEO] code is On
HTML code is On
Pingbacks are On
Refbacks are On
Forum Rules
formula required to make lotto frequency calculator http://www.mrexcel.com/forum/excel-questions/519276-formula-requir...
5 of 6 6/3/2014 6:54 PM
-- vB4 Default Style