Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default How to only incld cells that meet set condition in an Excel calc?

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.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default How to only incld cells that meet set condition in an Excel calc?

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

On Mar 22, 6:58 pm, ScottFisher2004
wrote:
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.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel-only average cells if two cells in same row, meet two condit Eulie-Denver Excel Worksheet Functions 5 October 5th 06 11:15 PM
In excel counting cells in a range which meet condition "Xand<X" Uncivil Servant Excel Worksheet Functions 1 May 19th 06 02:37 PM
auto calc on, but have to edit (f2) cells to force re-calc..help! Curt Excel Worksheet Functions 3 February 13th 06 06:05 PM
Adding numbers that meet a condition? carrera Excel Discussion (Misc queries) 3 July 8th 05 02:31 PM
sum of a cell if 2 cells meet a condition Markitos Excel Worksheet Functions 4 January 4th 05 05:27 PM


All times are GMT +1. The time now is 06:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"