I have the following array formula:
{=SUM(IF((PM=INDEX(Name,ROW($A1)))*((ISNUMBER(MATCH(Date,MajorHolidays,0)))+(ISNUMBER(MATCH(Day,FridayWeekEnd,0)))+(ISNUMBER(MATCH(Day,WeekEnd,0)))+(ISNUMBER(MATCH(Date,MinorHolidays,0)))+(ISNUMBER(MATCH(Date,FridayWeekEnd,0)))),1))*WeekDayPMhours}
I want the SUM to occur only if the first condition (PM=INDEX...) is true and all the other conditions are not. I have tried various combinations of AND (*), OR(+) and NOT(-) but it just doesn't work.
Any ideas.
Thanks.
{=SUM(IF((PM=INDEX(Name,ROW($A1)))*((ISNUMBER(MATCH(Date,MajorHolidays,0)))+(ISNUMBER(MATCH(Day,FridayWeekEnd,0)))+(ISNUMBER(MATCH(Day,WeekEnd,0)))+(ISNUMBER(MATCH(Date,MinorHolidays,0)))+(ISNUMBER(MATCH(Date,FridayWeekEnd,0)))),1))*WeekDayPMhours}
I want the SUM to occur only if the first condition (PM=INDEX...) is true and all the other conditions are not. I have tried various combinations of AND (*), OR(+) and NOT(-) but it just doesn't work.
Any ideas.
Thanks.