+ Reply to Thread
Results 1 to 12 of 12

separate the start and end digits and high and low digits and *

  1. #1
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    separate the start and end digits and high and low digits and *

    separate the start and end digits and high and low digits and

    * in the list always updating the list of the draw the macro has to do when it is put more draws
    https://www.excelforum.com/attachmen...1&d=1529437431
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: separate the start and end digits and high and low digits and *

    I don't know if I understand what you are looking for, but here is my best guess.

    For first/last:
    I5: =SUMPRODUCT(--(LEFT(TEXT($A5:$G5,"00"),1)=TEXT(I$4,"0")))
    N5: =SUMPRODUCT(--(RIGHT(TEXT($A5:$G5,"00"),1)=TEXT(N$4,"0")))
    Then copy right and down.

    For Even/Odd and High/Low, I think you can just use SUMIFS once you have the first/last formulas in place, but my results didn't quite match yours, so I don't know if I understood your request correctly.

    Y5: =SUMIF($I$4:$W$4,Y$4,$I5:$W5)

    Copy right and into AE, AK, and AQ, then fill down.

    Take a look at the attachment to see if it's working as desired.
    Attached Files Attached Files
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    Re: separate the start and end digits and high and low digits and *

    hello CANTOSH error = 0 0 0 2 0 38 corret 16

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: separate the start and end digits and high and low digits and *

    Quote Originally Posted by jorel View Post
    error = 0 0 0 2 0 38 corret 16
    As I mentioned in my initial response, I don't fully understand your request. If my solution works in some parts but not in others, please be very clear about where it isn't working and what is should be doing instead.

    If your are referring to AQ6:AV6, my solution in post #2 completely ignored the SUM columns. I do not see what pattern or calculation you were aiming for with those columns. If the incorrect results are occurring in SUM columns, please clarify what they are supposed to be summing. My best guess is that the SUM column is supposed add the tallies multiplied by their values, but in some SUM columns the 'expected' value you included in your initial attachment doesn't match that calculation. If you want the tally*value total, try using SUMPRODUCT:

    For example, in M5: =SUMPRODUCT(I$4:L$4,I5:L5)
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    Re: separate the start and end digits and high and low digits and *

    Okay, now it's correct, very good job.
    only missing now quanvou put new raffles the macro has to do automatic, in fact in all scenilia always will place new raffles

  6. #6
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: separate the start and end digits and high and low digits and *

    Quote Originally Posted by jorel View Post
    only missing now quanvou put new raffles the macro has to do automatic, in fact in all scenilia always will place new raffles
    I'm glad I could help, but I don't understand this sentence. My guess is that you are looking for a macro that randomly creates the six raffle numbers on each rows? If I am correct, you do not need a macro. In the attachment, I've created the random raffle numbers in AY:BE using the formula below in AY5. It must be array-entered (confirmed with Ctrl + Shift + Enter instead of Enter), then filled right and down:

    =INDEX(SMALL(IF(ROW($1:$39)*(COUNTIF($AX5:AX5,ROW($1:$39))=0),ROW($1:$39)),ROW($1:$39)),RANDBETWEEN(1,40-COLUMN(A:A)))

    To get the numbers in order in A:G, use the formula below in A5 (NOT array-entered), then fill right and down:

    =SMALL($AY5:$BE5,COLUMN(A:A))

    You can re-randomize the numbers by pressing F9. Take a look at the attachment to see if it is what you want:

  7. #7
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    Re: separate the start and end digits and high and low digits and *

    Not,Cantosh, every week has the draw of new results that I will update the list of draw
    * The macro has to do when I place new drawings

  8. #8
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: separate the start and end digits and high and low digits and *

    I'm sorry, I still don't understand. Can you attach a workbook that demonstrates what the data should look like both 'before' and 'after' the help you're requesting?

  9. #9
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    Re: separate the start and end digits and high and low digits and *

    What should I do when I place new draws on the list?
    02 03 07 12 17 21 22
    01 02 15 17 21 23 25 processing
    ?
    * new draw will be put the macro has to do
    in the new draw

  10. #10
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: separate the start and end digits and high and low digits and *

    Are you just looking to move the formulas down to a new row? You can either select I:U of the bottom row and fill down through the new row, or you can add an IF($A5="","", … clause in front of every formula and fill them down beyond what you need so that the formulas will automatically populate when you add new rows to A:G. Will that work? The attachment demonstrates the second way:
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    11-29-2014
    Location
    brasil
    MS-Off Ver
    excel 2016
    Posts
    2,175

    Re: separate the start and end digits and high and low digits and *

    ok, CANTOSH ect, very good job, the best in excel
    * conglatulations, thank you

  12. #12
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: separate the start and end digits and high and low digits and *

    Happy to help, good luck!

+ 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. [SOLVED] Looking for a formula to count single digits vs. double digits?
    By mnlaw in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-29-2023, 02:20 PM
  2. Replies: 4
    Last Post: 11-09-2017, 02:05 PM
  3. [SOLVED] add 0 to numerical digits of 6 digits only in mixed alphanumerical columns
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-11-2017, 01:35 PM
  4. [SOLVED] Combine digits in double digits in 4 numbers without repeating each other
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-14-2014, 08:18 AM
  5. vlookup only the right most 4 digits of the 6 digits sequential numbers
    By tabcm66 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-02-2014, 07:33 AM
  6. [SOLVED] How to multiply a constant to only first 10 digits of 45 digits in a Logical Function
    By gz3s36 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-10-2014, 02:40 PM
  7. Changing digits after decimal to specific digits based on a criteria
    By mpatel000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-28-2012, 02:41 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