+ Reply to Thread
Results 1 to 42 of 42

Find the strings of only the last digits of the numbers in the 5 sectors, please!

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

    Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Find the strings of only the last digits of the numbers in the 5 sectors, please!
    link=http://www.mediafire.com/file/eb42j93sg4n5s4c/pasta_string_hoje.xlsx

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    So what do you want the result to be?

    54 or eb42j93sg4n5s4c
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Ok, MIKE! you, have to sort as was in the example = have put the corresponding colors in the draws, my lottery is 100/20
    You have each sector vector the strings, have the option to put new draws the macro go doing as it puts new draws of course
    Can you put the planilia in a link, please?

  4. #4
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Try this for starters:-
    Your data starts "A3",Results start "W3".
    Please Login or Register  to view this content.
    Regards Mick

    http://www.dec.org.uk/

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Hello,MICK it's not like that, mick
    You have to make each of the 5 colors, only last digit from 0 to 9 the strings
    You have to see the strings for each of the 5 sectors. You have to mark the corresponding color in the draw list

  6. #6
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Try this:-
    NB:- The last Group of numbers has 99 instead of 89 and I've altered the the first "00" to 90
    ONLY LAST DIGIT
    1 2 3 4 5 6 7 8 9 0
    81 82 83 84 85 86 87 88 99 00
    91 92 93 94 95 96 97 98 99 00



    Please Login or Register  to view this content.
    Regards Mick

    http://www.dec.org.uk/

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Sorry the corret please is 89 90
    99 00 error = is corret 89 90

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Sub MG15Apr22()
    Private Sub CommandButton2_Click()

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    error =Sub MG15Apr22()
    Private Sub CommandButton2_Click()

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Hello, MICK please can you put the code in the worksheet? When I try to activate, it shows error

  11. #11
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Give this a try

    Please Login or Register  to view this content.

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    error=Else
    tmp = Application.Evaluate("=MATCH(" & Cells(i, ii).Value & ",4:4,0)")
    Cells(i, tmp).Value = IIf(Cells(i, tmp).Value = "", "x", Cells(i, tmp).Value & ",x")
    End If

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    excel 2014 Windows 7

  14. #14
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Did you change 89 and 90?

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    YES,MIKE you have to make this correction in the sector,
    Logically, 89.90 is correct! Sorry

  16. #16
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    When I change those on your workbook it works fine for me
    Attached Files Attached Files

  17. #17
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Also I'm guessing you'll want the strings sorted

    Please Login or Register  to view this content.

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Hello, mike de best, great, very good job, spectacular
    It looks great.
    Mike you did the 5 lines, now I'm going to link the 5 columns,
    Is to do everything equal, just changed the sectors wait until I put the link
    Use the same macro for the 5 columns or sectors

  19. #19
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Okay, gonna grab something to eat and walk the dog. Be back shortly

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!


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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Hello, mike is now only first digit only
    Use the same formula or previous macro, so it changes
    Now the scan is from the first digit ok.
    Do the same, but with the first digit of the number
    Option to go putting new draws of course

  22. #22
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520
    Quote Originally Posted by jorel View Post
    Hello, mike is now only first digit only
    Use the same formula or previous macro, so it changes
    Now the scan is from the first digit ok.
    Do the same, but with the first digit of the number
    Option to go putting new draws of course
    You should be able to do this, find in the code where it has Right(.....,1) change to Left(.....,1)

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    But changed the letters in the new worksheet, changed the reference, is the colors? please

  24. #24
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Change out this section of the code

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Last edited by mike7952; 04-15-2017 at 07:26 PM. Reason: Fixed code

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    error=or ii = LBound(sCols) To UBound(sCols)
    Cells(i, sCols(ii)).Value = BubbleSrt(sMyStrings(ii), True)

  26. #26
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Must be doing something on your end, works fine for me.

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Function not defined compilation error

  28. #28
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    I didn't post the function with the last code, thinking you would have left the function in the module.

    Please Login or Register  to view this content.

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Mike can not ride, hiker does not have much talent in excel
    I will not be able to ride for years.

  30. #30
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Lol, So have you got it working now, or you still needing a ride?

  31. #31
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Try your returned file:-
    See sheet2.
    Check results that are showing, then remove and run code again to test.
    Attached Files Attached Files

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!


  33. #33
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Link doesn't drive. You still needing a solution?

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    But it's another spreadsheet with groups for the columns! Another planilia with the same conditions only changed the groups

  35. #35
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    This don't work? Color of cell is self adjusting

    Please Login or Register  to view this content.
    Last edited by mike7952; 04-16-2017 at 07:53 AM.

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    new link=http://www.mediafire.com/file/s25p175day697kq/string%2Cnova_planilia__columm.xlsx

  37. #37
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Code in this link works for me

    Click here

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    k? Color of cell is self adjusting

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    new link=http://www.mediafire.com/file/s25p175day697kq/string%2Cnova_planilia__columm.xlsx

  40. #40
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    What's not working now?

  41. #41
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    Click the button. I guess I'm not understanding your request and why the new links?
    Attached Files Attached Files

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

    Re: Find the strings of only the last digits of the numbers in the 5 sectors, please!

    OK man! Mike, great job congratulations, works perfect,
    Mike, you're great at excel, congratulations, thank you,

+ 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] Find missing digits when comparing two numbers
    By Karnik in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-25-2017, 03:26 PM
  2. [SOLVED] Compare two numbers to in column and find which digits are missing
    By Karnik in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-16-2017, 10:34 AM
  3. [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
  4. 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
  5. [SOLVED] Conditional formating loop to find numbers that are within x digits of each other.
    By rjnewsome in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2013, 08:11 AM
  6. Replies: 0
    Last Post: 12-13-2012, 08:15 AM
  7. How to find and extract numbers that may be present in lengthy text strings
    By Langkawi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-15-2007, 03:17 PM

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