+ Reply to Thread
Results 1 to 5 of 5

Pivot Table Question

  1. #1
    Registered User
    Join Date
    11-21-2008
    Location
    Salt Lake City, UTAH
    Posts
    7

    Pivot Table Question

    I have a pivot table, in the "sum" column I have various dates. I have conditional formatting which makes certain dates green, yellow, and red.

    The "sum" column consists of a few hundred dates each with their associated color.

    I want to be able to count the cell by color. Currently I am having to manually count each color by hand, I want this to be automated.

    I know you can count cells by color in a regular worksheet using VBA Color Function. For some reason, in a pivot table, I am unable to use color fuction to count each cell by color.

    Any ideas on how I can accomplish this?

    Thanks, let me know if you need further explanation.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,444
    In what way does the function not work?

    Can you post small example file of pivot table and formatting.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    11-21-2008
    Location
    Salt Lake City, UTAH
    Posts
    7
    I have attached a sample file... As you will see in the "Sum Column" I have dates with conditional formatting associated with each date.

    I want to be able to automatically count each color in the pivot table. I can do this outside of the pivot, but for some reason it wont count the background color inside the pivot..

    Let me know if this makes sense.
    Attached Files Attached Files

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,444
    When conditional formatting is used the cells interior colour is not altered.

    Try the following formula

    F2: =COUNTIF(H10:H35,"<="&H1)
    F3: =COUNT(H10:H35)-F2-F4
    F4: =COUNTIF(H10:H35,">="&H3)

  5. #5
    Registered User
    Join Date
    11-21-2008
    Location
    Salt Lake City, UTAH
    Posts
    7

    Worked Like a Charm

    Thanks so much for your help... You have no idea how this will help automate things..

    I found my new Excel forum!

+ 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