+ Reply to Thread
Results 1 to 4 of 4

Color changing cell

  1. #1
    Registered User
    Join Date
    09-07-2021
    Location
    Calgary
    MS-Off Ver
    2021
    Posts
    2

    Color changing cell

    I'm looking to make a cell chance color based on the value being greater or less than the cell before it in the column.

    Red if value is less than
    Green if greater then

    I want to format this all the way down the column from 2-366

    I can't figure out how to do it.thank you in advance.
    Attached Images Attached Images

  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
    53,048

    Re: Color changing cell

    Take a look at using Conditional Formatting. You will need a new rule for each condition
    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-07-2021
    Location
    Calgary
    MS-Off Ver
    2021
    Posts
    2

    Re: Color changing cell

    That's what I figured. I have the rules currently set off the start of each month. so it will go green or red based off that value from the first day of the month. was just hoping to avoid having to enter them all manually and could make it so each cell took the day before with out having to manually create 365 rules.

  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
    53,048

    Re: Color changing cell

    If you need to look at the day (row?) before, use cell refs instead.

    in B3,,,
    =B3<B2
    format fill RED

    etc

+ 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. [SOLVED] Color changing: change the color of one cell, and have other cells change colors too
    By hadydea in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-17-2019, 04:51 PM
  2. [SOLVED] Changing the color of a bar based on the color of a cell.
    By sungen99 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-02-2019, 10:26 AM
  3. Any way to apply a color theme by changing the color of one cell ?
    By KomicJ in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-02-2016, 01:11 PM
  4. Replies: 3
    Last Post: 08-18-2014, 12:47 PM
  5. [SOLVED] Changing fill color of shapes based on changing cell value
    By Stefan1983 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2012, 10:33 AM
  6. Changing a cell's color based on it's color and the value of another cell
    By lorr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2012, 01:09 PM
  7. changing cell color based on changing values
    By tvonbehren in forum Excel General
    Replies: 2
    Last Post: 09-16-2009, 12:33 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