+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting - Compare Column with previous Column

  1. #1
    Registered User
    Join Date
    01-09-2014
    Location
    United Kingdom
    MS-Off Ver
    Mac Excel 2011
    Posts
    20

    Conditional Formatting - Compare Column with previous Column

    Hi,

    I have a table where I want to compare the latest values with the values in previous column. I want to show increases in numbers with a green background and decreasing numbers with a red background.

    Since I will be continuously adding columns, I was hoping that as I add columns I can just copy and paste the style from previous columns to apply to new columns.

    Any idea how to do that with a formula and conditional formatting? See attachment for example data.

    Many thanks,

    TT
    Attached Files Attached Files

  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
    52,939

    Re: Conditional Formatting - Compare Column with previous Column

    Try this...
    1. highlight the range you want to apply the conditional formatting to (in your sample =$C$3:$C$13)
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter ==C3>B3 format fillGREEN

    repeat 3 and 4 for RED
    you may need to choose what you do with 0 and no change?
    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
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional Formatting - Compare Column with previous Column

    Try like this

    Highlight C3:E13
    Conditional Formatting - New Rule - Use Formula..
    =C3>B3 (set format as Green)
    =C3<B3 (set format as Red)


    These should automatically expand when you add data to column F

  4. #4
    Registered User
    Join Date
    01-09-2014
    Location
    United Kingdom
    MS-Off Ver
    Mac Excel 2011
    Posts
    20

    Re: Conditional Formatting - Compare Column with previous Column

    Super, that worked like a charm! Many thanks!

+ 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] Compare any value in a column with any value in an other using conditional formatting
    By Soulseeker in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-21-2015, 08:08 AM
  2. [SOLVED] Conditional Formatting. If cell in column A=x, then any entry in column B must include y
    By rnbblsmm in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-03-2015, 05:17 PM
  3. [SOLVED] Conditional Formatting To Reference a String in a Column and Applied to another Column
    By ABC2014 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-21-2014, 08:25 PM
  4. Insert column and fill column upto where data is in previous column
    By aka189 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-24-2012, 06:07 AM
  5. Replies: 5
    Last Post: 09-24-2012, 05:14 PM
  6. Replies: 3
    Last Post: 11-22-2011, 02:06 PM
  7. Replies: 3
    Last Post: 04-06-2011, 01:15 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