+ Reply to Thread
Results 1 to 9 of 9

Excel 2007 : Applying shading to every second row

  1. #1
    Registered User
    Join Date
    05-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Applying shading to every second row

    I'm wondering if theres a way to add shading to every second row on the worksheet, even if I insert new rows into the worksheet.

    Mainly because it's a sheet going from A to P and I want to graphically seperate each entry.

    Thanks!

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Applying shading to every second row

    Hi DrummeR-
    One way
    Select the area
    then in conditional Formatting
    =Mod(row(),2=0
    select format shading
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

  3. #3
    Registered User
    Join Date
    05-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Applying shading to every second row

    Where do I go to add that code exactly? (After hitting conditional formatting)

  4. #4
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Applying shading to every second row

    Hi DrummeR-
    in the formula area
    select conditional Formatting in the help
    it has a good explaination

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Applying shading to every second row

    use the "use a formula to determine option" in conditional formatting
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    05-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Applying shading to every second row

    \1

    That doesn't do anything.

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Applying shading to every second row

    typo
    try
    =MOD(ROW(),2)=0
    dont forget to select the range you want shaded or it will only do the cell you are in

  8. #8
    Registered User
    Join Date
    05-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Applying shading to every second row

    Thanks..

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

    Re: Applying shading to every second row

    DrummeR,

    why not simply click Format as Table on the Home ribbon? This will give you several format and coloring options, which will then also be applied to new rows.

    cheers

+ 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