+ Reply to Thread
Results 1 to 4 of 4

OR or conditional format

  1. #1
    Ju
    Guest

    OR or conditional format

    May i know what is wrong with this?

    What i am trying to do is to colour the whole row if the date at column
    d is a sunday or a public holiday.

    I put the following formula in the conditional format, but it doesnt
    colour the row.

    =OR(WEEKDAY(INDIRECT("$D"&ROW()),2)=7,OFFSET(INDIRECT("$d"&ROW()),0,-2)="PH")

    data is as follows:
    column A B C D
    Row1 Sunday 06-11-2005
    Row2 PH 03-11-2005


    Appreciate some help on this. Thx

    Ju










  2. #2
    Bob Phillips
    Guest

    Re: OR or conditional format

    How about

    =OR(WEEKDAY($D2)=1,$B2="PH")

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Ju" <this@isnot.correct> wrote in message
    news:dnp8v6$fh4$1@mawar.singnet.com.sg...
    > May i know what is wrong with this?
    >
    > What i am trying to do is to colour the whole row if the date at column
    > d is a sunday or a public holiday.
    >
    > I put the following formula in the conditional format, but it doesnt
    > colour the row.
    >
    >

    =OR(WEEKDAY(INDIRECT("$D"&ROW()),2)=7,OFFSET(INDIRECT("$d"&ROW()),0,-2)="PH"
    )
    >
    > data is as follows:
    > column A B C D
    > Row1 Sunday 06-11-2005
    > Row2 PH 03-11-2005
    >
    >
    > Appreciate some help on this. Thx
    >
    > Ju
    >
    >
    >
    >
    >
    >
    >
    >
    >




  3. #3
    Ju
    Guest

    Re: OR or conditional format


    Ah! thanks Bob.

    Ju


    How about

    =OR(WEEKDAY($D2)=1,$B2="PH")

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Ju" <this@isnot.correct> wrote in message
    news:dnp8v6$fh4$1@mawar.singnet.com.sg...
    > May i know what is wrong with this?
    >
    > What i am trying to do is to colour the whole row if the date at column
    > d is a sunday or a public holiday.
    >
    > I put the following formula in the conditional format, but it doesnt
    > colour the row.
    >
    >

    =OR(WEEKDAY(INDIRECT("$D"&ROW()),2)=7,OFFSET(INDIRECT("$d"&ROW()),0,-2)="PH"
    )
    >
    > data is as follows:
    > column A B C D
    > Row1 Sunday 06-11-2005
    > Row2 PH 03-11-2005
    >





  4. #4
    Bob Phillips
    Guest

    Re: OR or conditional format

    It's often easier than we think <bg>

    Bob

    "Ju" <this@isnot.correct> wrote in message
    news:dnrno1$88r$1@reader01.singnet.com.sg...
    >
    > Ah! thanks Bob.
    >
    > Ju
    >
    >
    > How about
    >
    > =OR(WEEKDAY($D2)=1,$B2="PH")
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > (remove nothere from email address if mailing direct)
    >
    > "Ju" <this@isnot.correct> wrote in message
    > news:dnp8v6$fh4$1@mawar.singnet.com.sg...
    > > May i know what is wrong with this?
    > >
    > > What i am trying to do is to colour the whole row if the date at column
    > > d is a sunday or a public holiday.
    > >
    > > I put the following formula in the conditional format, but it doesnt
    > > colour the row.
    > >
    > >

    >

    =OR(WEEKDAY(INDIRECT("$D"&ROW()),2)=7,OFFSET(INDIRECT("$d"&ROW()),0,-2)="PH"
    > )
    > >
    > > data is as follows:
    > > column A B C D
    > > Row1 Sunday 06-11-2005
    > > Row2 PH 03-11-2005
    > >

    >
    >
    >




+ 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