Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
William
 
Posts: n/a
Default Conditional Formulas For Averaging

I am trying to create a formula that will look for a particular condition in
one column, and if that condition exists, then average the numbers from a
different column for the same row. As an example, one column contain the
names of multiple sales people, the other column contains the number of units
each one sold each day. I want the formula to average the number of units
sold for each person's name. So, if "Joe" sold 10 units one day and 20 units
another day, the formula would indicate that Joe sold 15 units.
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=AVERGE(IF(A2:A100="Joe",B2:B100))

entered with ctrl + shift & enter

--

Regards,

Peo Sjoblom

"William" wrote in message
...
I am trying to create a formula that will look for a particular condition

in
one column, and if that condition exists, then average the numbers from a
different column for the same row. As an example, one column contain the
names of multiple sales people, the other column contains the number of

units
each one sold each day. I want the formula to average the number of units
sold for each person's name. So, if "Joe" sold 10 units one day and 20

units
another day, the formula would indicate that Joe sold 15 units.



  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SUMPRODUCT(--(A1:A1000="Joe"),B1:B1000)/SUMPRODUCT(--(A1:A1000="Joe"))

or

=AVERAGE(IF(A1:A1000="Joe",B1:B1000))

The second is an array formula, so is committed with Ctrl-Shift-Enter

--

HTH

RP
(remove nothere from the email address if mailing direct)


"William" wrote in message
...
I am trying to create a formula that will look for a particular condition

in
one column, and if that condition exists, then average the numbers from a
different column for the same row. As an example, one column contain the
names of multiple sales people, the other column contains the number of

units
each one sold each day. I want the formula to average the number of units
sold for each person's name. So, if "Joe" sold 10 units one day and 20

units
another day, the formula would indicate that Joe sold 15 units.



  #4   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Fri, 25 Feb 2005 11:23:04 -0800, "William"
wrote:

I am trying to create a formula that will look for a particular condition in
one column, and if that condition exists, then average the numbers from a
different column for the same row. As an example, one column contain the
names of multiple sales people, the other column contains the number of units
each one sold each day. I want the formula to average the number of units
sold for each person's name. So, if "Joe" sold 10 units one day and 20 units
another day, the formula would indicate that Joe sold 15 units.


Here's one way:

Column of Names is named 'Names'
Column of Units is named 'Units'

=SUMIF(Names,"Joe",Units) / COUNTIF(Names, "Joe")

"Joe" (without the quotes) can be in a cell, also.


--ron
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
How to create Multiple Conditional Formulas in a single cell? Maxfx Excel Discussion (Misc queries) 2 February 1st 05 02:26 PM
Help Using Formulas in Conditional Formatting Still Learning Excel Discussion (Misc queries) 2 January 28th 05 04:55 PM
Conditional Formatting using result of Cell Formulas Dave Peterson Excel Discussion (Misc queries) 0 January 26th 05 02:17 AM
Duplicate Conditional Sum Formulas CCW Excel Worksheet Functions 4 December 14th 04 04:51 PM
conditional formulas in excel Rocempire Excel Worksheet Functions 2 November 6th 04 05:44 AM


All times are GMT +1. The time now is 06:11 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"