If the average

J

Jim

Hello,

In cell A1 I would like to put a month and year, for this example we can use
December 08, but I would also like to be able to change it to January 08 and
match the dates in the range of column D

In Cell B1 I have a name, for this example we can use Jim

In Cell C1 I will return the results of the formuls (you fill this in)

Column D has a variety of dates from January 01 2001 to December 31 2008

Column E has various names including the match we are looking for "Jim"

Column F has data generally looking like this: .41

Can you help me with a formula that will take all the the data entries
(column F) that match Jim (column E) for December 08 and average them.

If December 08 had 20 entries for Jim in column F then take the data add it
all together and divide it by 20.

I hope this is clearer than mud.

Thank you very much you "Excel Yoda's"

Jim
 
M

Max

Assuming A1 down contains real dates,
then something like this
In C1, array-entered, ie press CTRL+SHIFT+ENTER to confirm the formula:
=AVERAGE(IF((TEXT(D1:D4,"mmmyy")=TEXT(A1,"mmmyy"))*(E1:E4=B1),F1:F4))
Adapt the ranges to suit your actuals, fix it with $ signs if you are
copying C1 down
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,000 Files:370 Subscribers:66
xdemechanik
 
J

Jim

Max,

This is perfect!!! Can you also give me input about how to write this
formula so the values are added and not summed?

Thank you very much!

Jim
 
M

Max

Jim said:
Max, This is perfect!!!

Welcome, good to hear. Please go back and mark that response by pressing the
YES button there (like the one below)
.. how to write this formula so the values are added and not summed?

But adding is the same as summing? If you want to SUM instead of AVERAGE for
the previous multi-criteria scenario ... in another cell, paste the same
expression, then just edit/replace AVERAGE with SUM in the formula bar, then
array-enter the expression as before. That should do it for you. And then
press the YES button below in this response.

P/s: Similarly, if you want to COUNT for the multi-criteria scenario,
replace AVERAGE with COUNT
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:22,000 Files:370 Subscribers:66
xdemechanik
---
 

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