+ Reply to Thread
Results 1 to 4 of 4

Counting coloured cells based on conditional formatting

Hybrid View

sponge_designs Counting coloured cells based... 12-06-2011, 11:24 AM
Bob Phillips Re: Counting coloured cells... 12-06-2011, 11:30 AM
sponge_designs Re: Counting coloured cells... 12-06-2011, 11:43 AM
Bob Phillips Re: Counting coloured cells... 12-06-2011, 02:20 PM
  1. #1
    Registered User
    Join Date
    12-03-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    54

    Counting coloured cells based on conditional formatting

    Did that heading make sense!?

    I have a gantt chart which uses conditional formatting to show the duration of task at hand.
    In this case when staff have accommodation booked (start date through to finish date)
    What I want to do is simply count the number of coloured cells (its the standard colour green) on the bottom line (starting on F98 and going through to DY98) therefore giving me a sum of employees accommodated on anyone day.

    Gantt_Chart.jpg

    Thanks in advance for your help


    Cheers,
    matt

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Counting coloured cells based on conditional formatting

    Why not jsut sum the days accomodation is booked?

  3. #3
    Registered User
    Join Date
    12-03-2009
    Location
    London, England
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: Counting coloured cells based on conditional formatting

    I have in column;
    A - name
    B - position
    C - department
    D - start date
    E - finish date

    Column D & E make up the gantt chart

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Counting coloured cells based on conditional formatting

    Try this

    =SUMPRODUCT(--(D2:D20<>""),--(E2:E20<>""),--(E2:E20-D2:D20+1))

+ 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