+ Reply to Thread
Results 1 to 3 of 3

Count color excel

  1. #1
    Registered User
    Join Date
    11-28-2016
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    5

    Count color excel

    Hi,
    I'm using a macro to count the cells with a specific background using this function:
    https://support.microsoft.com/en-us/...r-by-using-vba

    The script works perfectly but sometimes it see grey color as green but not all the time, does anyone know this happens?
    I've shared the excelfile if you want to have a look, it's makroactivited but I can promise you it's nothing harmful.

    https://www.dropbox.com/s/g80oskxw91...olor.xlsm?dl=0

    I use Excel 2013.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Count color excel

    Hello robato,

    This version of your macro worked for me...

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    11-28-2016
    Location
    Stockholm
    MS-Off Ver
    2013
    Posts
    5

    Re: Count color excel

    Thanks for your reply, that didn't do the trick! I've attached an image with the colors that are causing the problem. My biggest issue is that it's a bit unrealiabe, in some cases it also counts the lighter grey as green but in most cases it doesn't.
    Tricky color.jpg

+ 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. VB Excel, Count shapes with same color
    By ooitzechyi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-13-2016, 12:33 AM
  2. Count / Sum based on Background Color with Manual and Conditional Format Color
    By sam99 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2014, 08:00 PM
  3. Excel - count cells based on color
    By Rbordonaro in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-19-2014, 08:08 PM
  4. How to count cells in excel that have a particular data and color fill
    By blackpanther in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-11-2012, 04:21 PM
  5. count conditionally color filled text in excel
    By t0by1 in forum Excel General
    Replies: 0
    Last Post: 06-22-2011, 05:26 PM
  6. excel count cell with color conditional formatting
    By Marco in forum Excel General
    Replies: 6
    Last Post: 11-20-2005, 01:00 PM
  7. Count by color using VBA in Microsoft Excel
    By Kam in forum Excel General
    Replies: 1
    Last Post: 10-27-2005, 11:05 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