+ Reply to Thread
Results 1 to 2 of 2

Need Help with Count by Cell Color and Content

  1. #1
    Registered User
    Join Date
    04-10-2014
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need Help with Count by Cell Color and Content

    I'm trying to come up with a way to count cells with specific colors and names. I've attached a small subset of of the actual file. I've tried numerous combinations of Functions loaded into a module, and the one in the attached sheet is as close as I have come. Here's the script I found, along with the formula I'm using (it crosses worksheets):

    Please Login or Register  to view this content.
    =SUMPRODUCT(COUNTIF(CheckOff_Summer2014!$D$29:$Q$34,A4)*AND(Countcolour(CheckOff_Summer2014!$D$29:$Q$34,CheckOff_Summer2014!$O$1)))

    Data is on worksheet CheckOff_Summer2014, and the formula is on worksheet Report. Data is using a List from the worksheet List to select names, and the colors have been applied manually (no conditional formatting). The colors are at the top of the data sheet, and they are labeled with their color indexes.

    Problem Statement: I need to count cells from each date range that contain names and GREEN fill into the Basic columns for their specified dates, and cells with names and BLUE fill into the Advanced columns for their specified dates. The formula is not discrimating between colors... it is counting any and all fill colors into BOTH columns.

    I'm a strong Excel user, but not a programmer. So while I can copy/paste script and work with the formulas, my skills are limited. Any help would be greatly appreciated.

    Thanks,
    Sheri
    Attached Files Attached Files
    Last edited by sjhoward60; 04-11-2014 at 04:22 PM. Reason: add code tags

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,525

    Re: Need Help with Count by Cell Color and Content

    sjhoward60.
    Please read and adhere to the forum rules. In your case rule #3, which states:
    3. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the [#] button at the top of the post window (if you are editing an existing post, press Go Advanced to see the [#] button). The result will appear like this in the post window:

+ 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. Count by Color and by Cell Content
    By michael.a7 in forum Excel General
    Replies: 7
    Last Post: 04-10-2014, 07:06 PM
  2. [SOLVED] Conditional Formatting, current cell color follows to diff cell based on content
    By iallenwood in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2012, 04:13 PM
  3. Count by color and cell content
    By michael.a7 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2010, 10:40 PM
  4. How to color a cell according to its content
    By hkBattousai in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-30-2010, 09:40 AM
  5. can we color a cell content partly?
    By J_J in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-22-2005, 08: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