+ Reply to Thread
Results 1 to 5 of 5

Turn Pixel Image Into List of Blocks of Colour within each row e.g. 2 blue, 4 red, 6 blue?

  1. #1
    Registered User
    Join Date
    08-17-2020
    Location
    Oxford, England
    MS-Off Ver
    Office and Home 2016
    Posts
    2

    Turn Pixel Image Into List of Blocks of Colour within each row e.g. 2 blue, 4 red, 6 blue?

    I am a crocheter and I create drawings in Excel to turn into a list to follow e.g. 19 blue, 5 yellow, 76 blue, 2 white, 7 red, 2 blue.

    I colour the cells (squares) in using the fill tool.

    At the moment, I manually write out each row by highlighting and using the count tool at the bottom to tell me how many are in the black, but I have to do each block of colours one at a time; it's lengthy!

    Can Excel return the information in text with the amount in a block, followed by the colour name, and then a comma e.g. a list? Colours will feature multiple times in each row, so using a count function isn't going to succeed.

    I'd love some help with this as I have many patterns I would prefer to see written down! Thanks in advance.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often 365, but still time to time use also older versions
    Posts
    8,084

    Re: Turn Pixel Image Into List of Blocks of Colour within each row e.g. 2 blue, 4 red, 6 b

    This probably could be done with VBA code. But it would be much easier if you use the hint from a yellow bannet near the top of the page. Remember to show not only sample input, but also manually assessed output in the file.
    Best Regards,

    Kaper

  3. #3
    Forum Contributor
    Join Date
    05-20-2008
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    163

    Re: Turn Pixel Image Into List of Blocks of Colour within each row e.g. 2 blue, 4 red, 6 b

    Use numbers in the cells combined with conditional formatting.
    Then you could use COUNTIF function to know how many of each.

    I think this is what you're after.

  4. #4
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    2016
    Posts
    545

    Re: Turn Pixel Image Into List of Blocks of Colour within each row e.g. 2 blue, 4 red, 6 b

    Andrew-Mark had the same idea as me, but he had it first
    Althought it won't help with your existing patterns, setting up conditional formats would help you in the future.
    You could set up a series of conditions for the colours so that when you type say R in a cell the cell and text become red, type G and the cell and text are green, etc, etc.
    Then count number of R's or G's, etc in the column or entire grid.

    But, to help you with your existing patterns, follow Kaper's instructions.

  5. #5
    Registered User
    Join Date
    08-17-2020
    Location
    Oxford, England
    MS-Off Ver
    Office and Home 2016
    Posts
    2

    Re: Turn Pixel Image Into List of Blocks of Colour within each row e.g. 2 blue, 4 red, 6 b

    Thank you everyone!

    With the suggestion of the conditional formatting, I think an issue may arise using the COUNT function.

    I want to convert a conditionally formatted coloured image into a written pattern.

    A lot of rows repeat colours, but are broken by a section of an alternative colour e.g.

    Row 1: 7 red, 4 blue, 8 white, 9 red, 19 blue.

    I want Excel to return the pattern in the above format, but fear it will actually return:
    18 red, 23 blue, 8 white; thus losing the pattern completely.

    Am I right? Is there any way to counteract this?

+ 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] separate the starting digit of each number and add the amount in the blue matrix the blue
    By jorel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-01-2019, 05:41 PM
  2. Conditional Format to Blue Fill and Blue Font IF two conditions are met
    By Branbran10 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-25-2015, 10:52 AM
  3. Turn cell A1 blue if any cells between $L$6:$Q$9 are blue
    By sandk0330 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-18-2013, 02:53 PM
  4. Count number of cells that contain red, blue or red and blue
    By kjshearon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-17-2013, 11:26 AM
  5. Help with conditional formatting:P3 to turn blue,
    By balucanb in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 08-02-2009, 10:39 PM
  6. Turn off blue highlighting
    By MCS7 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 09-27-2007, 10:54 AM
  7. [SOLVED] why does my cells turn blue like I'm formatting when I try to ent.
    By frewil in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-03-2005, 10:06 AM

Tags for this Thread

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