+ Reply to Thread
Results 1 to 7 of 7

Conditional Formatting - Cell greater(Green)/less than(RED) prior cell

  1. #1
    Registered User
    Join Date
    06-28-2017
    Location
    MN, USA
    MS-Off Ver
    2010
    Posts
    3

    Conditional Formatting - Cell greater(Green)/less than(RED) prior cell

    Thanks in advance...

    I am trying to keep track of sales by day for multiple stores. Columns are days (dates) and rows are multiple locations. Each day I log in the sales.

    I would like the data that is entered to be GREEN if the amount I enter is greater than the previous days sales and RED if less (ie if D6>C6, then green, if D6<C6, then Red). This way I can easily see the trend, instead of mentally figuring out if its higher or lower.

    Any ideas??

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional Formatting - Cell greater(Green)/less than(RED) prior cell

    You will need two separate rules. You will highlight all your sales data except the first day, and your formulas will refer to the upper-left cell of your sales data. Suppose you have one row of headings and one column of headings and the second day of your data starts in C2. You will use a custom formula:

    =C2>B2
    and use color green

    second rule:

    =C2<B2
    and use color red

    For a more specific solution tell us where your data is. For help putting in your file, attach your file. Under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    06-28-2017
    Location
    MN, USA
    MS-Off Ver
    2010
    Posts
    3

    Re: Conditional Formatting - Cell greater(Green)/less than(RED) prior cell

    Jeff, thanks for the quick reply.
    Let me try to attach a sample sheet. What I want to see is either a red or green number (except for the first column of data). Green if it exceeds the previous days revenue and red if it is less. Does that make sense?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-26-2017
    Location
    India
    MS-Off Ver
    2013
    Posts
    2

    Re: Conditional Formatting - Cell greater(Green)/less than(RED) prior cell

    could you plz help me too ...
    Cell A1 is equal to a cell which is in another workbook

    i wanted to check if the value of cell A1 > 3000 (Cell A1 has 250) however it is returning True
    Note : Cell A1 = A1 from a different worksheet which i dont have any control off and is live and the value keeps changing

    I tried formating my workesheet A1 cell to number ...no go ....

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional Formatting - Cell greater(Green)/less than(RED) prior cell

    Quote Originally Posted by james12.jo View Post
    could you plz help me too ...
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional Formatting - Cell greater(Green)/less than(RED) prior cell

    Here is my description implemented in your file. I went out to column Z. If you need more rows or columns, just adjust the range applied in the CF rules (no need to change the formula).
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    06-28-2017
    Location
    MN, USA
    MS-Off Ver
    2010
    Posts
    3

    Re: Conditional Formatting - Cell greater(Green)/less than(RED) prior cell

    Boy, that is great. Thank you much!

+ 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] Conditional Formatting - If Cell = Cell Green If not Red
    By Nathan201 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-11-2016, 05:54 AM
  2. [SOLVED] Conditional Formatting - The Greater of 2 Cells = Green
    By ThanksAlot in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-17-2015, 08:05 PM
  3. If cell b2 greater than 50% of cell b3 format green
    By shrumpy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-10-2015, 08:30 PM
  4. [SOLVED] If cell value is greater than other cell then apply conditional formatting
    By jayce_sos in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-27-2014, 05:28 AM
  5. Replies: 1
    Last Post: 01-06-2014, 04:31 AM
  6. [SOLVED] Conditional formatting - one cell green rest no colour
    By HHR in forum Excel General
    Replies: 15
    Last Post: 01-31-2013, 02:26 PM
  7. Replies: 0
    Last Post: 04-10-2012, 11:56 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