+ Reply to Thread
Results 1 to 3 of 3

What formula/conditional formatting will work for this?

  1. #1
    Registered User
    Join Date
    02-15-2017
    Location
    Utah
    MS-Off Ver
    MS Office 365
    Posts
    6

    What formula/conditional formatting will work for this?

    I have a pivot table giving me the total $$ metric for my team in one column for row A, with subsequent rows having the individual team members' $$ metrics that add up to what is in row A. Because my team's headcount often changes, I am looking for a way to apply conditional formatting, but that makes it so that the cell in row A changes color depending on the average $$ per person.

    So Row A has $1000, Row B has $300, Row C has $500, and Row D has $200.

    How can I make it so that the cell in Row A turns red because the average of Rows B:D is higher than $300?

    Is there a way to format a cell based off of the average values of a separate group of cells? I am also trying to make it use the generic "Light Red/Green Fill with Dark Red/Green Text" formatting.

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: What formula/conditional formatting will work for this?

    Compute the average in a separate cell and then use the use formula option against this cell to assign the conditional format.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: What formula/conditional formatting will work for this?

    You can do what dflak suggests or you can bake the AVERAGE calculation right into your conditional formatting formula rather than using a separate cell. However, you are going to have two problems with either approach:

    The big problem is that conditional formatting in a pivot table will be wiped out when the pivot table is refreshed. One way to overcome this is to create a mirror of the pivot table using formulas that reference the pivot table, and then apply conditional formatting to that.

    Second, because this is a pivot table, the number of rows is subject to change so the AVERAGE function has to include the maximum likely number of rows that could be included. Therefore you cannot use the Grand Total option as the last row in your pivot table.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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. [SOLVED] Conditional Formatting wont work when I am using a formula
    By Jojojojo7 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-23-2015, 08:13 AM
  2. Excel Conditional Formatting, quick Check formula does not work!
    By Mjugovic19 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2015, 08:36 AM
  3. [SOLVED] Cannot get Conditional Formatting formula to work with wildcard characters.
    By Oscar Martin in forum Excel General
    Replies: 4
    Last Post: 01-19-2014, 12:52 PM
  4. Replies: 5
    Last Post: 11-13-2012, 05:53 PM
  5. Replies: 1
    Last Post: 07-19-2012, 05:37 AM
  6. Change formula to work in conditional formatting
    By efernandes67 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-04-2011, 03:06 AM
  7. Conditional Formatting Formula Will not work
    By jdunkel in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-20-2007, 09:24 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