+ Reply to Thread
Results 1 to 5 of 5

Conditionally formatting based on value changes in a row

Hybrid View

  1. #1
    Registered User
    Join Date
    07-29-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    35

    Exclamation Conditionally formatting based on value changes in a row

    Hi, guys

    I ran into a problem while I'm creating daily work out data.
    Basically I have all data in number values.
    Each column is labeled with current date like C4 is 7/1, D4 is 7/2, E4 is 7/3 and so on.
    And I started inputting how much I lift that day ( C5 is 155 (lb), D5 is 165, E5 is 145 and so on)
    Some days I lift heavier weights than last time, but some days I lift lighter weights.
    I was using conditional formatting to show my performance by changing font color to green when I lift more weight, to red when I lift less weight, and no changes when I lift same weight from previous)

    I created 3 different conditional formatting --> Use a formula to determine which cells to format
    =D5>C5 (changed font color to green)
    =D5<C5 (Changed font color to red)
    =D5=C5 (no change on format)

    Excel.jpg
    Then I used format painter to copy all other cells.
    It worked out somehow, but I ran into a problem.
    I skipped few days between workout days. I worked out on 7/1,2,3 and skipped 4,5 and came back working out 7/6)
    Because I skipped few days, 7/6 data shows in green color even though I lift less than 7/3.
    What formula can I add to have the cell look 7/3 data when there is no data in 4th or 5th?

    It's little wordy now, but what I'm trying to accomplish here is that I want make values change their color based on previous data on the row (I belive i've done that) while skipping blank cells and find the previous data on the same row. (Some of the data are shown green even though there aren't any data in the front)

    If my question is too confusing, let me know. I can answer any questions you guys might have.

    Thank you guys.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditionally formatting based on value changes in a row

    I used this formula for Green selecting D3:AG48

    =D3>INDEX($C3:C3, MATCH(9^99, $C3:C3))
    The MATCH looks for the last number before cell D3 (or other active cell)

    Does that work for you?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    07-29-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    35

    Re: Conditionally formatting based on value changes in a row

    Wow.... that's exactly what I wanted to do...
    You are absolutely amazing.
    Thank you so much for the help.
    Where do you learn or even practice to do that?
    I've taken advanced excel course, but still running into a problem when I wanted to create something.

    Awesome. Thank you again.

  4. #4
    Registered User
    Join Date
    07-29-2015
    Location
    USA
    MS-Off Ver
    2010
    Posts
    35

    Re: Conditionally formatting based on value changes in a row

    Quote Originally Posted by ChemistB View Post
    I used this formula for Green selecting D3:AG48

    =D3>INDEX($C3:C3, MATCH(9^99, $C3:C3))
    The MATCH looks for the last number before cell D3 (or other active cell)

    Does that work for you?
    Wow.... that's exactly what I wanted to do...
    You are absolutely amazing.
    Thank you so much for the help.
    Where do you learn or even practice to do that?
    I've taken advanced excel course, but still running into a problem when I wanted to create something.

    Awesome. Thank you again.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Conditionally formatting based on value changes in a row

    Yeah, some of those "Advanced" Excel courses aren't so hot. LOL
    I learned 80% of what I know on this board and others like it. A lot of it is being able to twist these formula's to do what you want them to do. SHG, DaddyLonglegs, Donkeyote and NBVC (among others) are masters at this. I study at their feet.

+ 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. Replies: 1
    Last Post: 11-17-2014, 03:27 PM
  2. Conditionally formatting one cell based on text in another.
    By Jsteelester in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-09-2014, 11:48 AM
  3. Replies: 3
    Last Post: 07-28-2014, 09:56 AM
  4. Conditionally Formatting Help Please
    By jsf_1973 in forum Excel General
    Replies: 3
    Last Post: 07-25-2014, 06:26 PM
  5. Replies: 2
    Last Post: 03-29-2014, 03:58 AM
  6. Is there a way to do conditionally formatting based on a rolling date?
    By Drogo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-05-2014, 10:44 PM
  7. Replies: 4
    Last Post: 05-01-2012, 03:44 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