OR or conditional format

  • Thread starter Thread starter Ju
  • Start date Start date
J

Ju

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
 
How about

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

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
Ah! thanks Bob.

Ju


How about

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

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
It's often easier than we think <bg>

Bob

Ju said:
Ah! thanks Bob.

Ju


How about

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

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)


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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top