+ Reply to Thread
Results 1 to 12 of 12

Pick five numbers

  1. #1
    Registered User
    Join Date
    03-19-2009
    Location
    Dayton Ohio, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Pick five numbers

    I have a worksheet that has all the numbers that I picked for the pick 5 lottery, listed from B24:N71. These are 5 different numbers. What I want to do is highlight the cells that equal the 5 numbers that were drawn, which I have located at S5,T5,U5,V5,W5
    Last edited by ewhite; 03-23-2009 at 07:05 PM. Reason: Solved

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Pick five numbers

    Select B24:N71, Format > Conditional Formatting > Formula is: =ISNUMBER(MATCH(B24, $S$5:$W$5, 0)), and then set highlight formatting as you wish.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Pick five numbers

    Here's a sample LOTTERY sheet I've worked up. Look at the CONDITIONAL FORMATTING for the cells in the main pool of numbers.

    It's the same approach. Use a conditional format to highlight the cell if it matches your range.

    Highlight all the cells in B24:N71
    Click FORMAT > CONDITIONAL FORMATTING
    Condition1: Formula Is: =MATCH(B24,$S$5:$W$5,0)
    Set your format pattern color.
    Attached Files Attached Files
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Registered User
    Join Date
    03-19-2009
    Location
    Dayton Ohio, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Pick five numbers

    Thanks for the help. I didn't put a space between the comma and 0, and I couldn't get it to work. After I put the space in, it was ok. Now I have another problem. I want to check to see that when I get 2 picks of the 5, it will place a $1.00 after the Win in column I and S. When I get 3 of 5 to place a $10.00, and when I get a 4 0f 5 to place a $300.00. And when I get 5 of 5 to place a Jackpot.
    Attached Files Attached Files

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Pick five numbers

    Try this formula in I24 copied down

    =LOOKUP(SUMPRODUCT(COUNTIF(S$3:W$3,B24:F24)),{0,2,3,4,5;"",1,10,300,"Jackpot"})

    format as currency and copy down. Amend for column S

  6. #6
    Registered User
    Join Date
    03-19-2009
    Location
    Dayton Ohio, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Pick five numbers

    Thanks for the info, but instead of getting 1,10,300,jackpot I get 2,3,4. Could you please help me.

    Earl

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Pick five numbers

    It works fine for me exactly as written when copied to H24 and then down.

  8. #8
    Registered User
    Join Date
    03-19-2009
    Location
    Dayton Ohio, USA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Pick five numbers

    I entered the formula just as listed, and still get the numbers 0,2,3,4,5 and not $1.00 for 2 hits,$10.00 for 3 hits, $300 for 4 hits, "Jackpot for 5 hits.


    Earl
    Attached Files Attached Files
    Last edited by ewhite; 03-25-2009 at 06:15 PM. Reason: Solved

  9. #9
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Pick five numbers

    See attached.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    06-05-2008
    Posts
    8

    Re: Pick five numbers

    hello,
    How you you add more than one row of winning numbers?
    I would like to enter the winning numbers every week as I'm playing a much larger game.

    Thankyou in advance.

  11. #11
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Pick five numbers

    please don't hijack another poster's thread. You can start a new thread and if you want, refer to this one for background info.

  12. #12
    Registered User
    Join Date
    06-05-2008
    Posts
    8

    Re: Pick five numbers

    sorry i wasnt aware of this.....I'm afraid I'm noob

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1