Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Feb 2005
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    I am aware of the trick (mod(row(),2) to color alternating rows in MS Excel. However, what I want to do is color alternating blocks of rows. i.e. rows 1-3, white; rows 4-6, grey; rows 7-9, white, etc...

    How do I do that?

    Thanks!
    -Alex

  2. #2
    3 Star Lounger Jim Cone's Avatar
    Join Date
    Feb 2002
    Location
    Portland, Oregon, USA
    Posts
    238
    Thanks
    0
    Thanked 3 Times in 3 Posts
    =MOD(INT((ROW()-1)/3),2)=1
    '--
    Jim Cone
    Portland, Oregon USA
    Shade Data Rows add-in

  3. #3
    Star Lounger
    Join Date
    Feb 2005
    Posts
    86
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Awesome. Thanks, man. -Alex

    Quote Originally Posted by Jim Cone View Post
    =MOD(INT((ROW()-1)/3),2)=1
    '--
    Jim Cone
    Portland, Oregon USA
    Shade Data Rows add-in

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •