+ Reply to Thread
Results 1 to 10 of 10

Count coloured cells

Hybrid View

  1. #1
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Count coloured cells

    No problem.

    There are three types of macros: General, Sheet, and ThisWorkbook.

    This is a general macro
    • Copy macro from post above
    • Select Ctrl + F11 (Opens VBE)
    • Select Ctrl + R (Only if project tree on the left side of the screen is not open)
    • Select Insert on toolbar >> Module
    • Paste macro on right side of screen
    • Select Alt + Q (Closes the VBE and return you to Excel)

    Lets say your range is A1:H20 and the color you want to count first occurs in C3.

    In a open cell enter =COUNTCOLOR(C3,A1:H20)

    NOTE: A User Defined Function (UDF) will not recalculate all by itself; instead, Ctrl + Alt + F9
    HTH
    Regards, Jeff

  2. #2
    Forum Contributor
    Join Date
    03-23-2007
    Location
    Essex, UK
    MS-Off Ver
    MS365 V2308
    Posts
    279

    Re: Count coloured cells

    Ok sorted that now counts the coloured cells thanx. But what of the matching numbers through the sheets whats the macro for generating a 4th sheet say with a list of matching numbers?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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