+ Reply to Thread
Results 1 to 4 of 4

Highlighting rows if different values different values

  1. #1
    Registered User
    Join Date
    09-26-2014
    Location
    UK
    MS-Off Ver
    2010, 2007
    Posts
    23

    Highlighting rows if different values different values

    Hi,

    How can I mark or highlight rows if there are changes in values within that row?

    Please note that attached is only an example to show what I need, I have noumerous rows and columns to work on. Values can range up to 1.000.000.
    Attached Files Attached Files

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

    Re: Highlighting rows if different values different values

    First of all, select cells A2:F7 and remove the fill colour from them. While those cells are still selected, click on Conditional formatting | New rule | Use a formula... from the bottom of the list, and put this formula in the dialogue box:

    =AVERAGE($B2:$F2)<>MAX($B2:$F2)

    Click on the Format button, then the Fill tab and choose your colour. Then OK your way out.

    Hope this helps.

    Pete

  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,794

    Re: Highlighting rows if different values different values

    Actually, thinking about it further, perhaps this would be a more robust formula:

    =AND(AVERAGE($B2:$F2)<>MAX($B2:$F2),COUNT($B2:$F2)>1)

    to ensure that you had at least 2 numbers on each row.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    09-26-2014
    Location
    UK
    MS-Off Ver
    2010, 2007
    Posts
    23

    Re: Highlighting rows if different values different values

    Quote Originally Posted by Pete_UK View Post
    Actually, thinking about it further, perhaps this would be a more robust formula:

    =AND(AVERAGE($B2:$F2)<>MAX($B2:$F2),COUNT($B2:$F2)>1)

    to ensure that you had at least 2 numbers on each row.

    Hope this helps.

    Pete
    Hi Pete,

    This is rad. 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. Replies: 1
    Last Post: 05-26-2014, 09:22 AM
  2. [SOLVED] Compare Rows, Delete duplicate values, Sum values but Retain blank rows
    By chancw in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-24-2013, 07:38 AM
  3. Comparing values and Highlighting
    By Alfarata in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-11-2008, 10:22 PM
  4. Highlighting Values
    By aoifem in forum Excel General
    Replies: 2
    Last Post: 10-17-2006, 04:51 AM
  5. highlighting duplicate values
    By Alice in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2006, 02:45 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