+ Reply to Thread
Results 1 to 8 of 8

Alternate Color Lines when using Custom Views

  1. #1
    GLT
    Guest

    Alternate Color Lines when using Custom Views

    Hello Everyone,

    I used the following code in the Conditional Fomatting dialog box to acheive
    alternate colour lines:

    =MOD(ROW(),2)=1

    This works fine, except when I choose a custom view, the alternate lines do
    not re-color themselves and I get blocks of one color or another - looks
    messy...

    Does anyone know how to fix this?

    Thanks

  2. #2
    Bob Phillips
    Guest

    Re: Alternate Color Lines when using Custom Views

    What is the custom view doing specifically?

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "GLT" <[email protected]> wrote in message
    news:[email protected]...
    > Hello Everyone,
    >
    > I used the following code in the Conditional Fomatting dialog box to

    acheive
    > alternate colour lines:
    >
    > =MOD(ROW(),2)=1
    >
    > This works fine, except when I choose a custom view, the alternate lines

    do
    > not re-color themselves and I get blocks of one color or another - looks
    > messy...
    >
    > Does anyone know how to fix this?
    >
    > Thanks




  3. #3
    GLT
    Guest

    Re: Alternate Color Lines when using Custom Views

    Hi Bob,

    Thanks for your response - I have autofilter switched on for the columns and
    I have saved a few different filters as a custom view...

    Whenever I select a custom view and the data is filtered, the color lines
    are based from the original view...

    Cheers

    "Bob Phillips" wrote:

    > What is the custom view doing specifically?
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "GLT" <[email protected]> wrote in message
    > news:[email protected]...
    > > Hello Everyone,
    > >
    > > I used the following code in the Conditional Fomatting dialog box to

    > acheive
    > > alternate colour lines:
    > >
    > > =MOD(ROW(),2)=1
    > >
    > > This works fine, except when I choose a custom view, the alternate lines

    > do
    > > not re-color themselves and I get blocks of one color or another - looks
    > > messy...
    > >
    > > Does anyone know how to fix this?
    > >
    > > Thanks

    >
    >
    >


  4. #4
    Bob Phillips
    Guest

    Re: Alternate Color Lines when using Custom Views

    Could it be because although the autofilter is hiding some rows, the MOD
    function does not ignore them. Maybe this formula will work better

    =MOD(SUBTOTAL(3,$A$1:$A1),2)=1

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "GLT" <[email protected]> wrote in message
    news:[email protected]...
    > Hi Bob,
    >
    > Thanks for your response - I have autofilter switched on for the columns

    and
    > I have saved a few different filters as a custom view...
    >
    > Whenever I select a custom view and the data is filtered, the color lines
    > are based from the original view...
    >
    > Cheers
    >
    > "Bob Phillips" wrote:
    >
    > > What is the custom view doing specifically?
    > >
    > > --
    > >
    > > HTH
    > >
    > > RP
    > > (remove nothere from the email address if mailing direct)
    > >
    > >
    > > "GLT" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Hello Everyone,
    > > >
    > > > I used the following code in the Conditional Fomatting dialog box to

    > > acheive
    > > > alternate colour lines:
    > > >
    > > > =MOD(ROW(),2)=1
    > > >
    > > > This works fine, except when I choose a custom view, the alternate

    lines
    > > do
    > > > not re-color themselves and I get blocks of one color or another -

    looks
    > > > messy...
    > > >
    > > > Does anyone know how to fix this?
    > > >
    > > > Thanks

    > >
    > >
    > >




  5. #5
    David McRitchie
    Guest

    Re: Alternate Color Lines when using Custom Views

    If it acts like filtering and you have all cells
    =MOD(SUBTOTAL(3,$A$1:$A1),2) for alternate row banding
    requires all cells in column A to be used in the rows not hidden by filtering..
    http://www.mvps.org/dmcritchie/excel....htm#colorband

    Should be simple for you to test, I don't know what view actually does.
    ---
    HTH,
    David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
    My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
    Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

    "GLT" <[email protected]> wrote in message news:[email protected]...
    > Hello Everyone,
    >
    > I used the following code in the Conditional Fomatting dialog box to acheive
    > alternate colour lines:
    >
    > =MOD(ROW(),2)=1
    >
    > This works fine, except when I choose a custom view, the alternate lines do
    > not re-color themselves and I get blocks of one color or another - looks
    > messy...
    >
    > Does anyone know how to fix this?
    >
    > Thanks




  6. #6
    David McRitchie
    Guest

    Re: Alternate Color Lines when using Custom Views

    Sorry Bob, I overlooked your reply, in fact I missed that view
    was autofilter so was unsure of my answer then.



  7. #7
    Bob Phillips
    Guest

    Re: Alternate Color Lines when using Custom Views

    No problem David, it never hurts, especially with the problems people
    sometimes get with not seeing some posts.

    Regards

    Bob


    "David McRitchie" <[email protected]> wrote in message
    news:[email protected]...
    > Sorry Bob, I overlooked your reply, in fact I missed that view
    > was autofilter so was unsure of my answer then.
    >
    >




  8. #8
    GLT
    Guest

    Re: Alternate Color Lines when using Custom Views

    Thanks Bob that works great

    "Bob Phillips" wrote:

    > No problem David, it never hurts, especially with the problems people
    > sometimes get with not seeing some posts.
    >
    > Regards
    >
    > Bob
    >
    >
    > "David McRitchie" <[email protected]> wrote in message
    > news:[email protected]...
    > > Sorry Bob, I overlooked your reply, in fact I missed that view
    > > was autofilter so was unsure of my answer then.
    > >
    > >

    >
    >
    >


+ 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