+ Reply to Thread
Results 1 to 9 of 9

Conditional format entire row?

  1. #1
    Forum Contributor
    Join Date
    04-05-2007
    Location
    Arlington, TX
    MS-Off Ver
    Office 2010
    Posts
    164

    Conditional format entire row?

    Currently I created a relatively simple spreadsheet which a few rows will be added each day. These rows span A3 through I3 - Whenever there is a date (and for simplicty, anything) in H column (H3, H4, etc.) I want to format the entire row with a green background. Is this something that should be done with conditional formatting, or with macros? Please let me know how would be the best way to do this, I've never done conditional formatting on multiple cells.
    Last edited by Pyrex238; 06-03-2011 at 11:22 AM.
    Office 2010

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Conditional format entire row?

    How about...

    =$H3<>""

    Highlight the range A3:I3 and enter this formula in conditional formatting
    HTH
    Regards, Jeff

  3. #3
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Conditional format entire row?

    Go with conditional formatting

    See here
    Contextures - Excel Conditional Formatting -- Introduction

    See also the links at the bottom of the link page

    Related Tutorials
    Excel Conditional Formatting -- Introduction
    Excel Conditional Formatting -- Based on another cell
    Excel Conditional Formatting -- Examples
    Excel Conditional Formatting -- Documentation
    Excel Conditional Formatting -- Data Bars
    Last edited by Marcol; 06-03-2011 at 11:07 AM.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  4. #4
    Forum Contributor
    Join Date
    04-05-2007
    Location
    Arlington, TX
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: Conditional format entire row?

    Quote Originally Posted by jeffreybrown View Post
    How about...

    =$H3<>""

    Highlight the range A3:I3 and enter this formula in conditional formatting
    Yes that works on a per row basis, but how am I suppose to apply this to the entire spreadsheet? Wouldn't I have to have 500 different conditional formatting rules?

    edit: I'm stupid, I got it figured out - thank you very much for your help.
    Last edited by Pyrex238; 06-03-2011 at 11:16 AM.

  5. #5
    Forum Contributor
    Join Date
    04-05-2007
    Location
    Arlington, TX
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: Conditional format entire row?

    One last question... What is the proper formula to format a cell if $A<>"" and $G<"0" ? How should I write that? Couldn't get it to work with if(and

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Conditional format entire row?

    How about...

    =AND($A3<>"",$G3<0)

  7. #7
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: Conditional format entire row?

    You need to return TRUE/FALSE

    Try, for example
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor
    Join Date
    04-05-2007
    Location
    Arlington, TX
    MS-Off Ver
    Office 2010
    Posts
    164

    Re: Conditional format entire row?

    Awesome, works great.

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Conditional format entire row?

    Glad it worked for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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