+ Reply to Thread
Results 1 to 8 of 8

Conditional Formatting - Highlighting whole row

  1. #1
    Registered User
    Join Date
    01-15-2021
    Location
    Hampshire
    MS-Off Ver
    PP 2016
    Posts
    8

    Question Conditional Formatting - Highlighting whole row

    Hi all

    Thanks in advance to anyone who solves this for me - It's been annoying me for too long now.
    Basically I want to set up a conditional format which highlights a row red when a product is older than 4 years old.

    The formula I use for this is :
    =$H2>4

    This works and is fine, however it also highlights any rows which do not have any value in them at all. So I basically want to know what formula to use to highlight only rows that have a 'value' that is over 4 and if there is no value to leave it blank. Hope this makes sense!

    Thank you!!
    Attached Files Attached Files
    Last edited by tonimarie797; 01-15-2021 at 04:21 PM.

  2. #2
    Forum Guru
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,450

    Re: Conditional Formatting - Highlighting whole row

    I assume your age is in column H

    if so select all cells and create a new conditional format using this formula

    =$H1 > 4

    if you want to ignore row one then try

    =and($H1 > 4,row()>1)
    Last edited by mehmetcik; 01-15-2021 at 03:46 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    01-15-2021
    Location
    Hampshire
    MS-Off Ver
    PP 2016
    Posts
    8

    Re: Conditional Formatting - Highlighting whole row

    Hey

    Thanks but this doesnt highlight the whole row only one column - Thats why I removed the $ before the 2. It also still highlights rows that have no value in them at all

  4. #4
    Forum Guru
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,450

    Re: Conditional Formatting - Highlighting whole row

    if you are selecting all cells you must write the formula as if it is for cell A1.

    So if you are formatting rows then you must use row 1

    and if you are formatting columns then you must use column A

    Samples attached.
    Attached Files Attached Files
    Last edited by mehmetcik; 01-15-2021 at 03:58 PM.

  5. #5
    Registered User
    Join Date
    01-15-2021
    Location
    Hampshire
    MS-Off Ver
    PP 2016
    Posts
    8

    Re: Conditional Formatting - Highlighting whole row

    Im really sorry but it still doesnt seem to work on mine! I have attached my spreadsheet for you to see.

    Thank you

  6. #6
    Registered User
    Join Date
    01-15-2021
    Location
    Hampshire
    MS-Off Ver
    PP 2016
    Posts
    8

    Re: Conditional Formatting - Highlighting whole row

    I have tried this - changed highlighted area to the whole spreadsheet. Used your formula and still it highlights empty fields. Please can you try it on mine and see if it works.

    Thanks

  7. #7
    Forum Guru
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,450

    Re: Conditional Formatting - Highlighting whole row

    Try:

    =AND(ISNUMBER($H1),$H1>4)

    I selected columns A to H and used this formula with your data and it worked.

  8. #8
    Registered User
    Join Date
    01-15-2021
    Location
    Hampshire
    MS-Off Ver
    PP 2016
    Posts
    8

    Re: Conditional Formatting - Highlighting whole row

    AMAZING!!!! Thank you so much this worked!!!!

+ 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: 6
    Last Post: 02-15-2018, 11:54 PM
  2. Conditional Formatting highlighting
    By skate1991 in forum Excel General
    Replies: 4
    Last Post: 01-19-2016, 02:08 PM
  3. [SOLVED] help in Highlighting a row using Conditional Formatting
    By civram1982 in forum Excel General
    Replies: 4
    Last Post: 02-06-2014, 03:50 AM
  4. [SOLVED] Conditional Formatting and Highlighting
    By lenoble22 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2013, 02:24 AM
  5. Highlighting in Conditional Formatting
    By NETSPY in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-21-2013, 08:20 AM
  6. Conditional Formatting Highlighting
    By MPXJOHN in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-19-2012, 04:07 PM
  7. [SOLVED] Conditional formatting and row highlighting
    By Cary in forum Excel General
    Replies: 3
    Last Post: 06-03-2005, 12:05 PM

Tags for this Thread

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