+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting large range of cells, based on percentage of previous cell in range

  1. #1
    Registered User
    Join Date
    04-18-2012
    Location
    Shreveport, LA, USA
    MS-Off Ver
    Office 2013
    Posts
    63

    Conditional formatting large range of cells, based on percentage of previous cell in range

    Sorry, that's the best I could come up with for a subject and keep it as short as possible. Let me explain my issue more in depth.

    I have a range of cells (C2:AG208), representing daily meter volumes. Columns C:AG represent 31 days, and rows 2:208 represent the individual meters. What I'm trying to do is use conditional formatting to highlight a cell in red if the value in the cell is 2% or more higher, or 2% or more lower, than the value in the previous cell.

    I suppose I could do this on a cell-by-cell basis, but that's really a lot of cells to do that way.

    Anyway, if there's a way to do this, I would appreciate the help.

    Thanks.

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Conditional formatting large range of cells, based on percentage of previous cell in r

    Hey!

    See the file attached.

    Copy the Rule in Conditional Formatting and amend the ranges as required.

    Hope it helps.

    Deep
    Attached Files Attached Files
    Cheers!
    Deep Dave

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Conditional formatting large range of cells, based on percentage of previous cell in r

    Highlight the cells D2:AG208, click on Conditional Format, then New Rule and choose the option "Use a formula ..." from the bottom of the list. Then enter this formula in the dialogue box:

    =AND(C2<>"",D2<>"",ABS((D2-C2)/C2)>0.02)

    Then click on the Format button, then the Fill tab and choose the colour that you would like (red), then OK your way out. Excel will automatically adjust the cell references for the highlighted cells.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    04-18-2012
    Location
    Shreveport, LA, USA
    MS-Off Ver
    Office 2013
    Posts
    63

    Re: Conditional formatting large range of cells, based on percentage of previous cell in r

    Thank you very 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. 3+ Conditional Formatting Rules for cell range based on Formula from other cells
    By osborsm9 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-06-2013, 08:48 PM
  2. [SOLVED] Conditional formatting based on dates in a range of cells
    By pmerobertson in forum Excel General
    Replies: 8
    Last Post: 01-10-2013, 12:50 PM
  3. Autopopulating a range of cells based on a previous cell
    By ashleytoron in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-07-2012, 10:07 AM
  4. Conditional Formatting - Grey Out and Lock A range based on a cell value in that range
    By Excelgnome in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-14-2012, 07:31 PM
  5. Replies: 3
    Last Post: 04-30-2011, 11:46 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