+ Reply to Thread
Results 1 to 5 of 5

Conditional Formatting

  1. #1
    Registered User
    Join Date
    09-05-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    3

    Conditional Formatting

    Hello...I need help on conditional formatting. Here's what I have...
    I have an excel worksheet that contains columns by month of the financials for all our customers. Then, I have a total column of the for the year and anther column with the monthly average.
    The worksheet also includes a variance threshold where the user puts in a $$ amt.
    I need a way to highlight certain cells if the actual monthly amount is less than or greater than a variable amount of the calculated average. So, for example the monthly average for customer A is 46.00 but I want to color all the cells for all customers whose monthly average is $25 less or greater than the calculated average for that customer
    Here’s an example of worksheet…

    VARIANCE (+ or - the 2012 average) = 25.00 (this is a variable that the user enters...can be any $$ amount)
    Cust A Jan 2012 Feb 2012 Mar 2012 Apr 2012 May 2012 Jun 2012 Total 2012 Avg
    40 21 43 38 89 44 276 46

    So for the above, I would need the months of Feb and May highlighted as the as they are $25 below or above the 2012 average of $46.
    Any suggestions are greatly appreciated....it sounded easy but has proven to been a little more complicated!

    Thank you
    Laurie

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Conditional Formatting

    Hi and welcome to the forum

    This sounds relatively straightforward, but to create the Conditional Formatting rule I will need to see a sample of what you are working with. Often, copy/paste to here doesnt work so well

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    09-05-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Conditional Formatting

    sample worksheet attached....thank you!

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Conditional Formatting

    So for the above, I would need the months of Feb and May highlighted as the as they are $25 below or above the 2012 average of $46.
    25 greater and less than 46 is 21 (lower range) and 71 (upper range)

    Feb = 21 + 25= 46 (within both ranges)
    Feb = 21 - 25= -4 (outside lower range)
    May = 89 + 25 = 114 (outside upper range)
    May = 89 - 25 = 64 (inside upper range)

    Based on these, niether would qualify?

  5. #5
    Registered User
    Join Date
    09-05-2013
    Location
    US
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Conditional Formatting

    I've attached another file with more detailed examples and explanation.......thanks again!

+ 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 Formatting via VBA: Change formatting in range based on value of each cell
    By ralphjmedia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2013, 10:37 AM
  2. Delete Conditional Formatting conditions but keep cell formatting - Excel 2010
    By tetreama in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-09-2012, 08:28 PM
  3. Replies: 3
    Last Post: 05-15-2012, 04:13 PM
  4. Replies: 1
    Last Post: 03-05-2012, 06:20 PM
  5. Macro for formatting fonts and cell colours - not Conditional Formatting
    By Kayaness in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2011, 03:46 AM

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