Domski
Well-known Member
- Joined
- Jan 18, 2005
- Messages
- 7,292
Hi there,
Just trying to get my head around something, more out of curiosity than anything else.
I'm using this formula to get averages based on 2 criteria:
{=AVERAGE(IF(Leave_Group=B$3,IF(Leave_Days>0,Leave_Days)))}
Which works fine.
I'm not a great fan of nested IF statements so assumed you'd be able to do the same thing using:
{=AVERAGE(IF(AND(Leave_Group=B$3,Leave_Days>0),Leave_Days))}
But it doesn't work.
Can anyone explain why?
Just trying to get my head around something, more out of curiosity than anything else.
I'm using this formula to get averages based on 2 criteria:
{=AVERAGE(IF(Leave_Group=B$3,IF(Leave_Days>0,Leave_Days)))}
Which works fine.
I'm not a great fan of nested IF statements so assumed you'd be able to do the same thing using:
{=AVERAGE(IF(AND(Leave_Group=B$3,Leave_Days>0),Leave_Days))}
But it doesn't work.
Can anyone explain why?