Parentheses are misplaced.
=IF(AND(B5="122",SUM(D5:L5)1),1,0)
But why quotes on numeric value 122 ?
=IF(AND(B5=122,SUM(D5:L5)1),1,0)
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email
"Stefan" wrote in message
...
Why does this not work: =IF(AND(B5="122"),(SUM(D5:L5)1)),1,0