Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Average values in date range

Hi

I have a list of numerical values (P5:P200) in O5:O200 is a corresponding
date as to when the values were recorded. How can I calculate an average of
values collected within a specific month.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default Average values in date range

=AVERAGE(IF(MONTH($O$5:$O$200)=1,$P$5:$P$200))

This is for January. Change 1 to 2 for Feb, 3 for March etc.

It is an array formula and needs CTRL+SHIFT+ENTER not just ENTER.




"sarahg" wrote in message
...
Hi

I have a list of numerical values (P5:P200) in O5:O200 is a corresponding
date as to when the values were recorded. How can I calculate an average
of
values collected within a specific month.

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Average values in date range

Try,

=SUMPRODUCT(--(ISNUMBER(P5:P200)),--(MONTH(P5:P200)=1),O5:O200)

Mike

"sarahg" wrote:

Hi

I have a list of numerical values (P5:P200) in O5:O200 is a corresponding
date as to when the values were recorded. How can I calculate an average of
values collected within a specific month.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Average values in date range

Ignore the last answer which wasn't the question you asked:)

This hopefilly is

=AVERAGE(IF((MONTH(P5:P200)=1)*ISNUMBER(P5:P200),( O5:O200),""))

This is an array so commit with CTRL+Shift+Enter Not by simply pressing enter.

Mike

"Mike H" wrote:

Try,

=SUMPRODUCT(--(ISNUMBER(P5:P200)),--(MONTH(P5:P200)=1),O5:O200)

Mike

"sarahg" wrote:

Hi

I have a list of numerical values (P5:P200) in O5:O200 is a corresponding
date as to when the values were recorded. How can I calculate an average of
values collected within a specific month.

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Average values in date range

Thanks Guarav,

Works for all months except January - not all of the cells contain data yet.
I have a sumproduct formula calculating something else and know that you add
--(YEAR(RP!$E$5:$E$200)=2009) into the formula.

is something similar required in this, and if so what/where.



"Gaurav" wrote:

=AVERAGE(IF(MONTH($O$5:$O$200)=1,$P$5:$P$200))

This is for January. Change 1 to 2 for Feb, 3 for March etc.

It is an array formula and needs CTRL+SHIFT+ENTER not just ENTER.




"sarahg" wrote in message
...
Hi

I have a list of numerical values (P5:P200) in O5:O200 is a corresponding
date as to when the values were recorded. How can I calculate an average
of
values collected within a specific month.

Thanks






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default Average values in date range

"Works for all months except January"

what do you mean? what does it return?


"sarahg" wrote in message
...
Thanks Guarav,

Works for all months except January - not all of the cells contain data
yet.
I have a sumproduct formula calculating something else and know that you
add
--(YEAR(RP!$E$5:$E$200)=2009) into the formula.

is something similar required in this, and if so what/where.



"Gaurav" wrote:

=AVERAGE(IF(MONTH($O$5:$O$200)=1,$P$5:$P$200))

This is for January. Change 1 to 2 for Feb, 3 for March etc.

It is an array formula and needs CTRL+SHIFT+ENTER not just ENTER.




"sarahg" wrote in message
...
Hi

I have a list of numerical values (P5:P200) in O5:O200 is a
corresponding
date as to when the values were recorded. How can I calculate an
average
of
values collected within a specific month.

Thanks






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
Average of multiple range with error values Werner Rohrmoser Excel Worksheet Functions 5 January 4th 08 01:47 PM
select date range then find average of values in another cell rob117 Excel Worksheet Functions 3 May 3rd 07 03:34 PM
Sum values within a specified date range [email protected] Excel Worksheet Functions 3 December 7th 06 02:00 PM
Basing Average function range on Date? DangerMouse Excel Discussion (Misc queries) 4 June 20th 06 06:21 PM
Can you average data in 1 column based on a range of values in another? kman24 Excel Worksheet Functions 2 November 17th 04 02:09 PM


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