Formula to find requested number

G

Glockman

I want to find how many times a number 1 thru 56 shows up .
I have 5 columns of winning lotto numbers like below

Date col1 col2 col3 col4 col5

3/25/2009 2 5 24 51 52

Using Excel 2007
Thanks for any help
 
O

Otto Moehrbach

Do you want to check how many times one specific number appears? Use:
CountIf(B2:F50,XX) where XX is the number you want to count.
If you want to check for all the numbers from 1 to 56, enter the following
formula into a cell in row 1 and drag that formula down to row 56.
CountIf($B$2:$F$50,Row())
HTH Otto
 
A

Ashish Mathur

Hi,

Your question is not clear. If you want to know how many times a number
between 1 and 56 shows up, you may use

=sumproduct((B2:F2>=1)*(B2:F2<=56)).

The answer would be 2

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com
 
G

Glockman

I am posting winning lotto numbers
I've got 5 columns of numbers and 50 rows.
I'm wanting to find out how many times a certain number appears in those 5
columns and 50 rows.The number would be between 1 and 56
I hope i've made this a little easier to understand what I'm trying to do.
Thanks
 
T

T. Valko

=COUNTIF(A3:E50,1)

That will count how many times the number 1 appears in the range.

If you want to count how many matches you have against the winning
numbers...

Let's assume A1:E1 are the winning numbers.

A3:E50 are the numbers you played

Enter this formula in F3 and copy down to F50:

=SUMPRODUCT(--(ISNUMBER(MATCH(A3:E3,A$1:E$1,0))))

--
Biff
Microsoft Excel MVP


Glockman said:
I am posting winning lotto numbers
I've got 5 columns of numbers and 50 rows.
I'm wanting to find out how many times a certain number appears in those
5
columns and 50 rows.The number would be between 1 and 56
I hope i've made this a little easier to understand what I'm trying to do.
Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top