+ Reply to Thread
Results 1 to 2 of 2

How to color cells based on previous cell value?

  1. #1
    Registered User
    Join Date
    05-30-2022
    Location
    England
    MS-Off Ver
    365
    Posts
    1

    How to color cells based on previous cell value?

    Hi all,

    Beginner at Excel so this is a very simple question; how do I color a cell in red or green based on the value of the cell above? For example, if the cell above is 600 and then one below is 500, I'd like to highlight 500 in red. I would also like to do this on a mass scale so not just a one-off formula for 2 cells.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,946

    Re: How to color cells based on previous cell value?

    Select, say, A2:Z100. Click on Conditional Formatting and pick the Formula option. Then use the formula: =A2<A1 and pick a format colour.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. Change cell color based on previous cell value (Increase/decrease)
    By jayden13 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-27-2020, 09:51 PM
  2. [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
  3. Changing Background Color for Active Cells, then back to Previous Color...
    By TMCinDC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-13-2016, 11:35 AM
  4. Color code cell based on previous cells
    By agmccall in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2016, 04:51 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. Replies: 7
    Last Post: 01-28-2014, 05:25 PM
  7. [SOLVED] Cell color will be changed based on its value compare with previous cell value
    By nur2544 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-02-2013, 02:09 PM

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