Share

Need excel formula

Sandy K's avatar - graphic pub.jpg

I want to count how many times a digit fell......

Cells B2,B3,B4 are the individual digits cells

thru Row 8

preferable sorted with the most hit digits first..........

Hypersoniq or WSLS help!!!!!!!

The idea is to take 7 days of draws, which would be 42 digits and find out which ones hit the most in a sorted list.

lottaloot's avatar - AvatarZ56
 P1P2P3
026311
124814
236211
32338
43339
544412
648517
780210
85016
932510

 

I have my table set up like this.  Will get you by until someone else gives you something better. 

Draws set up in cells D:F

P1=D2:D43

P2=E2:E43

P3=F2:F43

equals results

Then grey cells starting at 0

=sum(of P1:P3)

From there you have to count the old fashioned way or use auto filter, etc. 

Sandy K's avatar - graphic pub.jpg

thank you big time, LL.......have a great day.  Not really what I want but will play with it.....not interested in sums....just the count...I think it is a COUNTIF command or a COUNT command.

In the gray area, why can't I just sort with the decending order AZ thingie on the tool bar?

Sandy K's avatar - graphic pub.jpg

thanks LL......but I just got the formula.

hypersoniq's avatar - binary

was it a =countif() formula?

I have yet to try, but I think the =rank() formula could help with the order...

Sandy K's avatar - graphic pub.jpg

yes hyper is was:

=COUNTIF($B$2:$D$8,G2)

what do you suggest?

How would I do it with the =rank?

the countif formula counts well but it doesn't sort largest hits at the top on down......

Here is the Countif results:

DigitsHits
04
12
23
34
41
52
61
71
82
91

It counts but I wanted sorted so that the 0-3-2 is on top with 4 hits each and so on.  If I remember, I think the "rank" would do it but don't know how to do it.

Really what I am trying to do is set up a "Power Trails" spreadsheet.....fiddling with the amount of draws inputted right now. 

hypersoniq's avatar - binary

rank would only give a number value to the hits count

there are some special uses of rank, however... instructions here...

http://www.cpearson.com/excel/rank.htm

could be a tricky formula is needed, I'm still brushing up on formulas (creating your own) so I'll have to get back to you on this one... manually, you could select the 2 columns, click on SORT and pick the 2nd of the 2 columns in descending order, this would put the high counts at the top with their corresponding digits (but only if both ranges are selected)... that's how I do quick imports from state lottery games, copy their descended order list and re-sort it by date ascending (so I have newest draws at the bottom)

TopEnd of thread (1 page)

Welcome Guest

Your last visit: Thu, Oct 29, 2020, 2:58 am

Log In

Log InCancel

Forgot your username?

Forgot your password?