+ Reply to Thread
Results 1 to 6 of 6

Conditional Formatting utilizing 1 StDev Above Formula

Hybrid View

  1. #1
    Registered User
    Join Date
    09-20-2018
    Location
    denver, colorado
    MS-Off Ver
    2016
    Posts
    6

    Conditional Formatting utilizing 1 StDev Above Formula

    Hi my name is Jordan,

    I need help in creating a formula within the conditional formatting menu that will highlight the cells in yellow that are 1 standard deviation above the other cells in the range. For example, let's say I have January through August, 8 months, going across in columns A:H. Starting in row two under these months going from Jan to Aug, I have these percentages: 5%, 11%, 51%, 35%, 7%, 19%, 70%, 18%.

    51% and the 70% should be the cells that get highlighted. How should the formula be written to perform this in the menu --- Conditional Formatting > New Formatting Rule > Use a formula to determine which cells to format

    My intention is to be able to create this formula and be able to copy this conditional formatting to many rows individually below.

    I've attached my sample file to this thread. Any help would be greatly appreciated.

    Thanks,
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Conditional Formatting utilizing 1 StDev Above Formula

    Hello and welcome to the forum.

    Based on the layout of your sample in post #1, try this:

    Highlight B4:I4 > Conditional Formatting > New Rule > Use a formula
    =B4>=STDEV($B4:$I4)+AVERAGE($B4:$I4)
    Format: Fill color of your choice > OK > OK
    Last edited by 63falcondude; 09-20-2018 at 02:45 PM. Reason: Almost forgot the welcome!

  3. #3
    Registered User
    Join Date
    09-20-2018
    Location
    denver, colorado
    MS-Off Ver
    2016
    Posts
    6

    Re: Conditional Formatting utilizing 1 StDev Above Formula

    Awesome thank you that worked 63falcondude! Now, if I have 10 rows of similar percentages below this row B, how do I quickly copy down the conditional formatting so that this same formula will have its affect individually on rows $B5:$I5, $B6:$I6, $B7:$I7, etc.?

    When I use the format painter and drag down or copy $B4:$I4 and paste formatting to the next 10 rows below, it does not apply the CF to the rows individually, but rather as a whole on the entire 10 rows.

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Conditional Formatting utilizing 1 StDev Above Formula

    That's interesting... When I highlight B4:I4 (which was formatted using the formula from post #2), select the format painter, then select B5:I14, the CF works row by row as expected.

  5. #5
    Registered User
    Join Date
    09-20-2018
    Location
    denver, colorado
    MS-Off Ver
    2016
    Posts
    6

    Re: Conditional Formatting utilizing 1 StDev Above Formula

    So I've added in 9 more rows below row 4. I then selected b4:i4 that have your StDev formula in the CF settings. I used the format painter and drug down through I13. It seems to be working properly but when I select, say cells b13:i13 and look at the formula again within the conditional formatting settings the formula references row 5. Why would this be? Why would it not reference row 13?

    See attached updated file
    Attached Files Attached Files

  6. #6
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Conditional Formatting utilizing 1 StDev Above Formula

    Okay good. The Conditional Formatting is working properly. The only issue here is understanding how it is working.

    Notice that the "Applies to" range is $B$5:$I$13. The CF formula is applied to that range starting in the upper left most cell (B5).

    So in B5, the formula is =B5>=STDEV($B5:$I5)+AVERAGE($B5:$I5)
    As the formula is copied across and down the range, it changes to the following:

    C5 =C5>=STDEV($B5:$I5)+AVERAGE($B5:$I5)
    D5 =D5>=STDEV($B5:$I5)+AVERAGE($B5:$I5)
    ...
    B6 =B6>=STDEV($B6:$I6)+AVERAGE($B6:$I6)
    ...
    B7 =B7>=STDEV($B7:$I7)+AVERAGE($B7:$I7)

    But the rule only shows the formula used in the top left most cell of the "Applies to" range.

+ 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. Conditional StDev Produces Erroneous Results
    By mjcarman01 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-15-2017, 09:20 PM
  2. [SOLVED] stdev formula
    By jrtaylor in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-18-2016, 08:44 PM
  3. Average Formula Utilizing Two Cell Ranges
    By MLCall in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-05-2015, 02:55 PM
  4. Inserting a formula into a pivot utilizing a Running Total field
    By nixfmly in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 07-17-2014, 09:32 AM
  5. [SOLVED] Need help with subtracting time when utilizing 0\:00 formatting
    By amy0367 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-15-2013, 02:42 PM
  6. multiple evaluations in one formula utilizing percentages
    By hmoorex3 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-07-2013, 01:54 PM
  7. Concatenate formula utilizing Today()
    By wmfinance in forum Excel General
    Replies: 6
    Last Post: 08-12-2010, 02:21 PM

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