Average if Help

R

RFJ

I'm trying to calculate average salaries by for a grade within a payroll

I've got two named ranges - one is called 'grade' the other 'salary'. These
contain the grades and salaries of all staff

I'm trying to enter an array formula along the lines of

=average(if(grade=1),salary)

However, I can't get the syntax right as I keep getting error messages. I've
done the obvious things like check the range naming, etc. but can't get the
formulae right.

Can SKS help. TIA

Regards,

Robin
 
B

Bob Phillips

You almost had it right, just a ) in the wrong place

=AVERAGE(IF(grade=1,salary))

and this is an array formula, so commit with Ctrl-Shift-Enter
 

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

Top