|
=AVERAGE(IF($G$2:$G$16 = "Long", $E$2:$E$16))
Look at the columns it tests and adjust accordingly.
This is an array formula, meaning it MUST be confirmed with Ctrl+Shift+Enter, not just Enter. (With the cursor in the formula bar, hold down Ctrl and Shift, then press Enter.) You'll know you did it correctly if curly braces appear around the formula in the Formula Bar; you cannot type in the braces directly.
__________________
Entia non sunt multiplicanda sine necessitate.
|