Hi Bhupinder,
=IF(MAX(IF(ISERROR(MATCH(B1:B4,ROW(INDIRECT(date1&":"&date2)),0)),"",B1:B4))>0,-25,
IF(MAX(IF(ISERROR(MATCH(A1:A4,ROW(INDIRECT(date1&":"&date2)),0)),"",A1:A4))>0,25,0))
which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.
This assumes the BST dates are in B1:B4, and the GST dates in A1:A4.

Signature
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
> Hi Bob,
>
[quoted text clipped - 40 lines]
>> >
>> > B/
Bhupinder Rayat - 12 Jun 2007 14:57 GMT
Hi Bob,
That's brilliant, thanks for your help. I also managed to build it the long
way by multiple if statements in named ranges, but your version is more
easier to understand and maintain.
thanks,
B/
> Hi Bhupinder,
>
[quoted text clipped - 53 lines]
> >> >
> >> > B/