+ Reply to Thread
Results 1 to 25 of 25

detect a color only spaces of a cell only.

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

    detect a color only spaces of a cell only.

    detect a color only spaces of a cell only, example 12 13 14 12 14 has only one cell
    macro only process with a range cell
    https://www.excelforum.com/attachmen...1&d=1591275337
    Attached Files Attached Files

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

    Re: detect a color only spaces of a cell only.

    hello please!

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,858

    Re: detect a color only spaces of a cell only.

    Suggest you explain in plain language what you want. It may be clear to you, but I cannot see inside your head and have no idea what it is you wish to happen. Step by step as if you were to do this manually. Are you counting these? Wish to know where? Cell address? How and where to report? Give us a clue!
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

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

    Re: detect a color only spaces of a cell only.

    ok alan, thanks for viewing the post,
    let's go step by step, the macro, will mark in a color or another character, only where there is a cell range from one number to another
    * example that you can't = 01 04 = note that here there are two spaces or two cells, the macro here doesn't register, another example 14 16 here has an interval or an interval cell, this yes the macro does, all two numbers where act a range cell the macro does =
    * goal = is to see the range of a cell from one number to another, when it has more than two cells the macro does nothing

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

    Re: detect a color only spaces of a cell only.

    hello, alan, so the macro will only register a color number sequences where there is only one cell range

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

    Re: detect a color only spaces of a cell only.

    hello ALAN, please!

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: detect a color only spaces of a cell only.

    Don't understand jorel...update a sample file with more expected results...
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

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

    Re: detect a color only spaces of a cell only.

    hello sintek, thanks for viewing the post, very first the macro detects, in the two lists the corresponding numbers, then the macro highlights in a color or another character, only intervals of a cell between two numbers, where there are intervals 2,3,4 no does
    https://www.excelforum.com/attachmen...1&d=1591448796
    Attached Files Attached Files

  9. #9
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: detect a color only spaces of a cell only.

    very first the macro detects, in the two lists the corresponding numbers
    This I understand...
    Then the macro highlights in a color or another character, only intervals of a cell between two numbers
    This I don't understand...explain why red blocks and why blue blocks...

  10. #10
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: detect a color only spaces of a cell only.

    or another character, only intervals of a cell between two numbers
    This works but blank cells formula fill takes forever...
    Populating value into array for formula fill takes even longer...
    Please Login or Register  to view this content.
    Last edited by sintek; 06-06-2020 at 11:09 AM.

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

    Re: detect a color only spaces of a cell only.

    hello, oh ok sorry, blue is the same pattern as red, I forgot to do it on the other list but where there's blue is red, it's the same pattern, it's all the same

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

    Re: detect a color only spaces of a cell only.

    ok where there is the (?) point there you have to go the color can be red or blue, you can do it even below, where will the (?) points be highlighted in a color

  13. #13
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: detect a color only spaces of a cell only.

    Thought you said
    highlights in a color or another character
    Attached Files Attached Files
    Last edited by sintek; 06-07-2020 at 07:16 AM.

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

    Re: detect a color only spaces of a cell only.

    hello SINTEK BAH! , how wonderful, work of art, expended master's work, congratulations, thank you

  15. #15
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: detect a color only spaces of a cell only.

    Glad I could help...Tx for rep +

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

    Re: detect a color only spaces of a cell only.

    hello SINTEK I reopened, to see if you can add in each the number of times the red pattern happened, ex = 5.6 or 4.6 ....
    is to add in each row the number of times that the red pattern happened
    objective is to assemble the suit = ex = 5.6 6.6 ....

  17. #17
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: detect a color only spaces of a cell only.

    Not understood...need to clarify with sample file showing result expected...

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

    Re: detect a color only spaces of a cell only.

    ? x x ? x x x ? x x x ? x x x x ? x x ? x 6 x ? x x ? x x x ? x x x x x x ? x x x ? 5

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

    Re: detect a color only spaces of a cell only.

    is to add the quantity of each line
    example = 1st line had 6 red patterns the 2nd line had 5 red patterns, this gave a suit
    6.5, if you can compile statistics on the number of times you were drawn
    *

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

    Re: detect a color only spaces of a cell only.

    3,3 = exemplo=has already been drawn 49 times and an example
    3,4
    3,5
    3,6
    3,7
    3,8
    4,3
    4,4
    4,5
    4,6
    4,7
    4,8
    5,3
    5,4
    5,5
    5,6
    5,7
    5,8
    6,3
    6,4
    6,5
    6,6
    6,7
    6,8
    7,3
    7,4
    7,5
    7,6
    7,7
    7,8
    8,3
    8,4
    8,5
    8,6
    8,7
    8,8

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

    Re: detect a color only spaces of a cell only.

    the list above are all the possibilities of suits 3 to 8
    in 96% of the draws, amcro will see the frequencies in order to see which one is more drawn

  22. #22
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: detect a color only spaces of a cell only.

    Add this snippet to end of code....
    Please Login or Register  to view this content.

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

    Re: detect a color only spaces of a cell only.

    but the 1st list is not adding up. the 2nd list is correct, you have to do it on the 1st list too to set up the suit

  24. #24
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,162

    Re: detect a color only spaces of a cell only.

    Come on...You should have figured out small mistake in formula length of range...
    Please Login or Register  to view this content.
    Attached Files Attached Files

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

    Re: detect a color only spaces of a cell only.

    ok corret, SINTEK,perfect, conglatilations, 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] detect each corresponding number and highlight a color the sequences 2,3,4,5,6,7 .....
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2020, 05:06 PM
  2. detect in a color to yellow pairs and odd blue, *
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-30-2019, 05:56 AM
  3. detect, even / odd color and letters in matrix,
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2018, 05:08 PM
  4. [SOLVED] How to Detect White Font Color Anywhere in Workbook
    By StartRunMSPaint in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-22-2016, 11:42 AM
  5. Conditional formatting to detect cell with hyperlink and then to change color
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-12-2013, 11:32 AM
  6. Text color detect from Conditional Formatting?
    By Rick_Stanich in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-25-2007, 02:52 AM
  7. detect cell color and count it
    By Maileen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-31-2005, 07:09 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