How to only incld cells that meet set condition in an Excel calc?

G

Guest

I'm looking for instructions on how to create a calculation that only
includes cells that meet a specified condition in a subsequent calculation.
For example, visualize a sheet with three columns...account name, pricing
incentive offered to each account, and the sales result (sale / no sale).
Each account would have it's own row. I want to calculate the average
pricing incentive offered to only those accounts that resulted in a sale.
 
P

Pete_UK

Suppose your data occupies A1:C100. Try this array* formula:

=AVERAGE(IF(C1:C100="sale",B1:B100))

*As this is an array formula, then once you have typed it in (or
subsequently edit it) you must use CTRL-SHIFT-ENTER (CSE) rather than
just ENTER. If you do this correctly then Excel will wrap curly braces
{ } around the formula when viewed in the formula bar - you must not
type these yourself.

Hope this helps.

Pete
 

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