+ Reply to Thread
Results 1 to 17 of 17

Excel 2007 : Conditional Formatting: Delta Tracking

  1. #1
    Registered User
    Join Date
    07-20-2011
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    9

    Conditional Formatting: Delta Tracking

    Experts,
    I am working on a performance tracking excel spreadsheet that takes in a series of parameters for an application. What I am unsuccessfully trying to do is for every first instance delta in a given column based off the first data row I want to highlight the change.

    The following is an example of what I mean.

    Test Processors Memory Throughput
    1 2 3 41
    2 2 3 42
    3 3 3 41
    4 3 3 41


    In this example I would want to see the Throughput value in test 2 highlighted, the processors and throughput highlight in test 3 and nothing highlighted in test 4 as the values between test 3 and test 4 did not change.

    I'm using excel 2007 and have been playing with this unsuccessfully for the past while and I would sincerely appreciate any help.

    Thank you in advance,
    Daniel
    Last edited by lanied; 07-21-2011 at 04:45 PM. Reason: Solved :)

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Formatting: Delta Tracking

    Not sure if this is what you mean, but if that data is in A1:D5, then select D3:D5 and go to Home|Conditional Formatting, New Rule

    Then select Format only cells that contain from top section.

    Then select not equal to from 2nd drop down and enter =D2 in last field.

    Then click Format and choose from Fill tab.

    Then click Ok... click Ok again to finish.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-20-2011
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Conditional Formatting: Delta Tracking

    That's a solid start thanks. I'll try and clarify a bit. With your code it highlights any row that is not equal to the initial value. I'd like to go a little beyond that and highlight the cell if 1) it is not equal to the designated start cell and 2) if it is a different value to that of the previous cell in that column, otherwise don't highlight it.

    Basically the idea is to use excel to track changes in parameters for an application I am performance tuning. I want to be able to see if the change in parameters that I make has an impact on throughput values. Therefore for each parameter I am tracking I am keeping an individual column. I only want to highlight the cell when there is a change in state i.e. when I change the parameter and update the cell accordingly. I hope that explains things a little more.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Formatting: Delta Tracking

    The solution I posted highlights the cell if it is different than the previous, not the first.

    If this is still not what you want, then can you post a sample workbook showing what you want highlighted and why.

  5. #5
    Registered User
    Join Date
    07-20-2011
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Conditional Formatting: Delta Tracking

    As requested. I think in the example there would be one conditional formatting rule per column but they all would follow the same premise. Thanks very much for your help and advice!
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Formatting: Delta Tracking

    Apply the same principal to each column selecting from row 3 down and then the conditional formatting rules as previously mentioned.

    See attached... I removed all your manual formatting...
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-20-2011
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Conditional Formatting: Delta Tracking

    Thanks for the reply. It's not getting me to where I need to be. I am thinking of using a helper column to highlight when I have a difference and I used a formula to create one. How can I use conditional formatting to highlight the original column, e.g. A, if the value in the help column (B) says it should (e.g. if the the value in $B1=1 then highlight A1 and so on so forth).

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Formatting: Delta Tracking

    The sample I attached was a replica of your sample with expected results... and it had the conditional formulas in them... so not sure how it is not getting what you wanted... it was highlighting cells where the cell above was not the same value... i.e. highlighting when a change in value occurred within the individual columns....

  9. #9
    Registered User
    Join Date
    07-20-2011
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Conditional Formatting: Delta Tracking

    To expand on why I am looking to track the change from the baseline on. Therefore if the value changes back to the base value that's still a change. The solution you offered me is a static check against the B2 cell rather than a dynamic check against the previous cell in the column which is what I am looking for.

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Formatting: Delta Tracking

    No the solution I gave is not static on B2... it is on previous Cell... that is the way the formula is entered, but since I told you to select a range like B3:B5, then the formula will become relative... i.e. in B3 the reference is to B2, but in B4 the reference is to B3, and in B5, the reference is to B4...

  11. #11
    Registered User
    Join Date
    07-20-2011
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Conditional Formatting: Delta Tracking

    When I look at conditional formating -> Manage Rules I see that each for each column there exists a rule such that; Cell value <> $COLUMNLETTER2. Extrapolating from I am missing how the rule checks the previous cell above it in the column to decide whether the value is different. To break down more consider the following series in a given column

    1 - Start Point: Not highlighted
    1 - No change: Not highlighted
    2 - Change: Highlighted.
    2 - No change: Not highlighted
    3 - Change: Highlighted.
    1 - Change: Highlighted.

    Hopefully this clarifies my position. I apologize for the frustration because of any miscommunication of the problem statement on my part.

    Thanks for your time on this NBVC.

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Formatting: Delta Tracking

    Did you see my attachment? Was it wrong?

  13. #13
    Registered User
    Join Date
    07-20-2011
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Conditional Formatting: Delta Tracking

    I did indeed and yes the attachment was wrong as it doesn't match up to the above description. It looks at a static entry rather than dynamically changing it's decision criteria. Hence why I thought the formula approach could work better.

  14. #14
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Formatting: Delta Tracking

    Do me a favour and open my attachment, go to C9 and type 4G ... do you not get any new colouring at that point and below?

  15. #15
    Registered User
    Join Date
    07-20-2011
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Conditional Formatting: Delta Tracking

    I'm a muppet :-) You are absolutely correct. Thanks for the help!

  16. #16
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Conditional Formatting: Delta Tracking

    Ok great... I was getting confused as to why you thought it wasn't working... glad it is resolved

    Conditional Formatting.. especially on post XL2003 versions, is a bit confusing to audit because of the way it displays the applied formula no matter what cell you select. It still messes me up sometimes.

    In XL2003 and previous, if you selected a different cell and checked the conditional formatting.. you will see that the reference does change.
    Last edited by NBVC; 07-21-2011 at 04:40 PM.

  17. #17
    Registered User
    Join Date
    07-20-2011
    Location
    Toronto, ON
    MS-Off Ver
    Excel 2007
    Posts
    9

    Talking Re: Conditional Formatting: Delta Tracking

    That would explain my confusion alright. Thanks again for solving this!

+ 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