+ Reply to Thread
Results 1 to 4 of 4

VBA to convert a coloured matrix into an equivalent matrix of 1's and 0's

  1. #1
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    VBA to convert a coloured matrix into an equivalent matrix of 1's and 0's

    Hi,

    I have a coloured matrix that I'd like to convert into an equivalent matrix of 1's and 0's (example attached).

    NB - If it makes a difference the same colour is always used to populate the matrix.

    Thanks in advance,

    Snook

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

    Re: VBA to convert a coloured matrix into an equivalent matrix of 1's and 0's

    Something like this?
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: VBA to convert a coloured matrix into an equivalent matrix of 1's and 0's

    Exactly what I was after!

    Cheers CK76!

  4. #4
    Valued Forum Contributor
    Join Date
    10-15-2007
    Location
    Home
    MS-Off Ver
    Office 2010, W10
    Posts
    373

    Re: VBA to convert a coloured matrix into an equivalent matrix of 1's and 0's

    Hi

    You can also do it directly using the UI,

    1 - fill the cells with 0
    2 - use Ctrl-H and use replace using the format of one of the coloured cells.
    3 - remove the colour

+ 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. Finding a specific row of a matrix in another matrix
    By hfarhadi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-27-2014, 04:14 PM
  2. Replies: 2
    Last Post: 11-05-2014, 03:41 AM
  3. Eigenvector of matrix for nxn matrix of variable size
    By rocketscientist165 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-14-2014, 10:51 AM
  4. Replies: 2
    Last Post: 02-11-2014, 05:05 AM
  5. Convert image to matrix
    By oro77 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2013, 10:10 PM
  6. Using a transition matrix as input to a cummulative matrix
    By Walter12 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2012, 04:19 AM
  7. convert a matrix in excel
    By markomanie in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-30-2007, 09:45 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