ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   finding numbers (https://www.excelbanter.com/new-users-excel/13681-finding-numbers.html)

flat6

finding numbers
 
Is it possiable to find multible numbers on one sheet with vlook up? At work
we have 30 people in a lottery group and there are 5 lines of numbers per
person at 6 numbers per line. trying to make this easyer to do. any help
would be appreciated.
Thanks , Henry

Bernie Deitrick

Henry,

Let's say that you put the winning numbers into cells B1:G1, and that your
list of guessed numbers start in row 2, column B to G, and go down the
sheet. In cell H2, use the formula

=SUMPRODUCT(--NOT(ISERROR(MATCH(B2:G2,$B$1:$G$1,FALSE))))

and copy down as far as you need. This will list the number of matches in
each set of numbers. You can sort (descending) or filter based on that
column to show the higher number of matches.

If you want to see the matches highlighted, select all your numbers (in
cells B2:G???) and then select Format | Conditional Formatting... Use
"Formula Is..." and the formula

=NOT(ISERROR(MATCH(B2,$B$1:$G$1,FALSE)))

Set the pattern of the format to whatever color you want to highlight the
actual matches.

HTH,
Bernie
MS Excel MVP

"flat6" wrote in message
...
Is it possiable to find multible numbers on one sheet with vlook up? At

work
we have 30 people in a lottery group and there are 5 lines of numbers per
person at 6 numbers per line. trying to make this easyer to do. any help
would be appreciated.
Thanks , Henry




flat6

Thank you
Henry

"Bernie Deitrick" wrote:

Henry,

Let's say that you put the winning numbers into cells B1:G1, and that your
list of guessed numbers start in row 2, column B to G, and go down the
sheet. In cell H2, use the formula

=SUMPRODUCT(--NOT(ISERROR(MATCH(B2:G2,$B$1:$G$1,FALSE))))

and copy down as far as you need. This will list the number of matches in
each set of numbers. You can sort (descending) or filter based on that
column to show the higher number of matches.

If you want to see the matches highlighted, select all your numbers (in
cells B2:G???) and then select Format | Conditional Formatting... Use
"Formula Is..." and the formula

=NOT(ISERROR(MATCH(B2,$B$1:$G$1,FALSE)))

Set the pattern of the format to whatever color you want to highlight the
actual matches.

HTH,
Bernie
MS Excel MVP

"flat6" wrote in message
...
Is it possiable to find multible numbers on one sheet with vlook up? At

work
we have 30 people in a lottery group and there are 5 lines of numbers per
person at 6 numbers per line. trying to make this easyer to do. any help
would be appreciated.
Thanks , Henry






All times are GMT +1. The time now is 03:10 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com