+ Reply to Thread
Results 1 to 4 of 4

Change Cell Color Based on the Last Value in a Column

  1. #1
    Registered User
    Join Date
    09-17-2018
    Location
    St. Louis, MO
    MS-Off Ver
    365
    Posts
    2

    Change Cell Color Based on the Last Value in a Column

    Hi - am trying to figure out a way to change the color of one cell based on a column of data. Specifically, the last value in that column. This is a spreadsheet to track a project, so you enter the Date Completed (Column G) as you go, which then populates the Variance in Column H. As I enter the completed date, I would like the box over on the right to change color (red, yellow, green) based on the variance, however, I cannot specify one cell and would like to know if there's a way to change the color based on the last value in column H. Does that make sense? So if the last date entered in Column G was on row 34, I would like the color to be based on the value in cell H34. Thank you! excel.png

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Change Cell Color Based on the Last Value in a Column

    You can use conditional formatting defined by a formula.

    e.g.

    =OFFSET($G$1,COUNTA($G:$G)-1,0,1,1) > 3
    Martin

  3. #3
    Registered User
    Join Date
    09-17-2018
    Location
    St. Louis, MO
    MS-Off Ver
    365
    Posts
    2

    Re: Change Cell Color Based on the Last Value in a Column

    How would I plug that in to highlight red if the number in column H is >7, yellow if it is >=0 and <7, and green if it is =<0? Would I need 3 separate rules in the conditional formatting?
    .

  4. #4
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Change Cell Color Based on the Last Value in a Column

    Three separate rules required.

+ 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: 2
    Last Post: 09-02-2018, 01:09 PM
  2. Change cell format (cell color+font color) based on color of another cell
    By Dedaluss in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2017, 03:27 AM
  3. [SOLVED] Need to change cell color based off of RGB Color being defined in 3 cells
    By Chris McGlothen in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-01-2017, 02:13 PM
  4. Macro to change cell text color based on darkness of cell fill color
    By cincyshirm61 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-25-2014, 12:11 PM
  5. change fill color of a range of cells based on color of a cell?
    By DarMelNel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2014, 04:48 PM
  6. Change Font Color Based On Adjacent Cell Color
    By Zorro9758 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-11-2013, 02:47 PM
  7. VBA / Macro help needed to change the barchart color based on Cell Color
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-28-2012, 09:15 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