View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
T. Valko T. Valko is offline
external usenet poster
 
Posts: 15,768
Default Formula to find requested number

=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" wrote in message
...
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
--
Larry W


"Ashish Mathur" wrote:

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

"Glockman" wrote in message
...
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
--
Larry W