+ Reply to Thread
Results 1 to 6 of 6

Lotto numbers to have L H or P C

  1. #1
    Registered User
    Join Date
    10-19-2017
    Location
    Narrogin, Australia
    MS-Off Ver
    Windows 7
    Posts
    5

    Lotto numbers to have L H or P C

    G'day people,
    Need a formula to display L and H.
    Example 6 lotto numbers - 10 13 20 23 29 45 next to the drawn numbers L L L H H H
    Low numbers 1 to 22
    High numbers 23 to 45
    The other idea is to display primes / composites example - P P C P C C.
    Thank you.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Lotto numbers to have L H or P C

    are each of these numbers in their own cells? Like 10 in A2 and 13 in B2 and 20 in C2 etc.? and where do you want the L L L H H H to appear?
    If that is what you want put this in G2 and drag right... =IF(A2="","",IF(A2<23,"L","H"))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,887

    Re: Lotto numbers to have L H or P C

    If all lotto numbers are in same cell... (say in A2).

    In B2:
    =IF(FILTERXML("<a><b>"&SUBSTITUTE($A2," ","</b><b>")&"</b></a>","//b["&COLUMN(A1)&"]")<23,"L","H")
    Copy across to G2 and down.

    Or if result is desired in single cell. Provided that you have Office 365 subscription.
    =TEXTJOIN(" ",TRUE,IF(FILTERXML("<a><b>"&SUBSTITUTE($A2," ","</b><b>")&"</b></a>","//b")<23,"L","H"))

    Confirmed as array (CTRL + SHIFT + ENTER)
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  4. #4
    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: Lotto numbers to have L H or P C

    a
    b
    c
    d
    1
    l/h
    p/c
    2
    2
    l
    p
    b2: =if(a2 <= 22, "l", "h")
    3
    13
    l
    p
    c2: =if(a2 = 2, "p", if(or(mod(a2, {2,3,5,7,9}) = 0), "c", "p"))
    4
    20
    l
    c
    5
    23
    h
    p
    6
    29
    h
    p
    7
    45
    h
    c
    Last edited by shg; 10-30-2019 at 06:08 PM. Reason: 2 is prime ...
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Lotto numbers to have L H or P C

    Richard, I take it from the private message you sent me that I might have given you what you wanted. If so, glad I could help. Don't forget to mark the post as solved using the thread tools dropdown at the top of the post AND you can thank any and all who've spent time trying to help by clicking on *Add Reputation below their post as that is how we advance on this forum.

  6. #6
    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: Lotto numbers to have L H or P C

    Richard,

    Please post your questions in the forum, not in PMs.

    Gracias.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Lotto Numbers-When number last selected (Cold Numbers)
    By Parka in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-30-2019, 03:02 PM
  2. Using Excel to help select Lotto numbers.....
    By farmerTom in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 10-15-2018, 05:09 AM
  3. Lotto Pool. Duplicate numbers help.
    By Catman87 in forum Excel General
    Replies: 7
    Last Post: 10-08-2013, 06:03 PM
  4. how to i find combination 6 of 8 numbers in lotto 6/45
    By bemax38 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2012, 04:47 AM
  5. how to update lotto numbers from a website?
    By azerty_azerty1111 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-22-2011, 07:51 AM
  6. Lotto numbers follow-up
    By Wyatt12 in forum Excel General
    Replies: 1
    Last Post: 11-12-2008, 03:15 PM
  7. Lotto numbers
    By Wyatt12 in forum Excel General
    Replies: 7
    Last Post: 10-22-2008, 09:29 AM

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