+ Reply to Thread
Results 1 to 3 of 3

VBA that Counts Coloured Cells

  1. #1
    Registered User
    Join Date
    07-10-2014
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    52

    Unhappy VBA that Counts Coloured Cells

    Hello All,

    I am working on some project where i stuck up basically i needed the VBA code which runs and count the number of cells which have specific color as defined by me. But any how my VBA code is doing that thing but it is also calculating the blanks cells with the same color but i need to count only those who are contain the data or value in it. Please refer the below screenshot for your reference.

    aa.JPG

    In This i am getting the count 15 (it is counting blank cells as well) but the required needed is 5. (I am counting the S.No.)

    Using code:
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    In the above function B1 is refering to color which i needed to be counted.

    Please help with the above scenario asap as my project is stuck.

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: VBA that Counts Coloured Cells

    Hi zackefron,
    try so
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-10-2014
    Location
    London, England
    MS-Off Ver
    2013
    Posts
    52

    Re: VBA that Counts Coloured Cells

    Thanks nilem working as i want..

+ 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. Auto copy cells including a cells Coloured background (colour fill)
    By rick.parry in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-06-2013, 04:51 AM
  2. How can I count coloured cells (coloured using Conditional Formatting)
    By franfry in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-15-2013, 02:40 PM
  3. Replies: 3
    Last Post: 04-23-2012, 02:06 PM
  4. Help - how do I sum coloured cells
    By Maureen Sydric in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-20-2011, 11:34 AM
  5. Count coloured cells - But treat cells with colour and value as 0.5
    By Wabby in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-19-2009, 12:26 PM
  6. Sum coloured cells!!!
    By podaf in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-19-2009, 04:50 AM
  7. Coloured Cells
    By Becks in forum Excel General
    Replies: 3
    Last Post: 02-08-2006, 08:50 AM
  8. Is it possible to have a code that counts coloured cells?
    By Fiona in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-14-2005, 10:06 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