Results 1 to 18 of 18

Countif + SumByColor

Threaded View

  1. #1
    Registered User
    Join Date
    09-04-2012
    Location
    Ruse
    MS-Off Ver
    Excel 2003
    Posts
    22

    Countif + SumByColor

    Hello all,

    I need help in the following case:

    I have 60 workers which are working on 4 different shifts (each shift is identified by the color of the cell, see the legend in the upper left corner) and are using 3 different buses to get to work (bus M1, M2 and M3).

    What I want to have automatically below the table is a counter which will tell me how many workers will use each type of bus per shift. For example:

    First shift
    M1: 2 workers
    M2: 10 workers
    M3: 0 workers

    Second shift:
    M1: 3 workers
    M2: 4 workers
    M3: 2 workers

    and so on.

    What I have so far included is a VB function "SumByColor" which sum cells based on their color, but I don't know how to make such complicate connection to get the wanted result. I was thinking about a possible way to combine "Subtotal" and "SumByColor" , so when I filter bus "M1" for example I will get this split of visible rows below the table. This is also a good solution, but can anyone help me to build it up? Thanks so much.
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Combining a Date Range COUNTIF and a general COUNTIF
    By jacobtom in forum Excel General
    Replies: 1
    Last Post: 09-15-2011, 05:06 PM
  2. SumByColor(Rng)
    By JimMay in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-13-2006, 07:45 AM
  3. VBA defined function problem sumbycolor
    By Brian Matlack in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-06-2006, 08:17 AM
  4. how to use sumbycolor fuction?
    By Ghauri in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-29-2005, 05:10 PM
  5. SumByColor Macro...
    By Murph in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-28-2005, 07: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