+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting formula to highlight/shade every other row

  1. #1
    Forum Contributor
    Join Date
    12-15-2005
    MS-Off Ver
    Office 2007
    Posts
    346

    Conditional formatting formula to highlight/shade every other row

    Sample attached.

    I am using the following formula in conditional formatting but was wondering if it could be altered to also highlight/shade every other row?

    =NOT(ISBLANK($A2))

    I am using this so that when an entry in made in column A, the row will display a border around each cell. I wanted to see if it was possible to also shade every other row and an entry is made into column A.

    Thanks,
    Nick
    Attached Files Attached Files
    Last edited by avidcat; 12-03-2011 at 06:03 PM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Conditional formatting formula to highlight/shade every other row

    Hello,

    create a second formatting rule for the same range. With the cursor located in A2, the formula for the rule is

    =AND(NOT(ISBLANK($A2)),MOD(ROW(),2))

    select a fill color and OK.

    cheers,

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Conditional formatting formula to highlight/shade every other row

    Hi,

    You could add a second conditional format in A2 covering the same range and use an appropriate Fill colour

    Please Login or Register  to view this content.
    However don't forget that with Excel 2007 onwards if you use Insert Table and select the range ("A2:N32") you can then use the Table Tools Design and pick one of the 'pyjama stripe' themes which will automatically shade every other row.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    12-15-2005
    MS-Off Ver
    Office 2007
    Posts
    346

    Re: Conditional formatting formula to highlight/shade every other row

    Perfect!

    Thanks for your help.

+ 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