Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default Average-Range Change Each Month

Need some quick help! In spread sheets the data is already entered for 2005
by months. I need a formula to average YTD data for a given month end. For ex
if current month is April, need to average Jan-April, If cm is May, avg
Jan-Apr, if cm is June, avg Jan-May, etc. I tried an If statement but
apparently Excel won't allow that many IF's. As always, very much appreciate
your assistance!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default Average-Range Change Each Month

modify this to suit your needs and array enter by ctrl+shift+enter

=AVERAGE(IF((MONTH(daterng)=1)*(MONTH(daterng)<MO NTH(TODAY())),sumrange))

--
Don Guillett
SalesAid Software

"Jani" wrote in message
...
Need some quick help! In spread sheets the data is already entered for
2005
by months. I need a formula to average YTD data for a given month end. For
ex
if current month is April, need to average Jan-April, If cm is May, avg
Jan-Apr, if cm is June, avg Jan-May, etc. I tried an If statement but
apparently Excel won't allow that many IF's. As always, very much
appreciate
your assistance!



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 31
Default Average-Range Change Each Month

Don - Thanks for the quick response but I don't understand the formula. Would
you explain please?

"Don Guillett" wrote:

modify this to suit your needs and array enter by ctrl+shift+enter

=AVERAGE(IF((MONTH(daterng)=1)*(MONTH(daterng)<MO NTH(TODAY())),sumrange))

--
Don Guillett
SalesAid Software

"Jani" wrote in message
...
Need some quick help! In spread sheets the data is already entered for
2005
by months. I need a formula to average YTD data for a given month end. For
ex
if current month is April, need to average Jan-April, If cm is May, avg
Jan-Apr, if cm is June, avg Jan-May, etc. I tried an If statement but
apparently Excel won't allow that many IF's. As always, very much
appreciate
your assistance!




  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default Average-Range Change Each Month

Let's say your data is set up the following way:

A B
1 Jan 3000
2 Feb 2000
3 Mar 4000
4 Apr 4300

In C1 enter the following'
C1: =AVERAGE(B$1:B1)
and copy down.

HTH,
Barb Reinhardt
etc.



"Jani" wrote:

Need some quick help! In spread sheets the data is already entered for 2005
by months. I need a formula to average YTD data for a given month end. For ex
if current month is April, need to average Jan-April, If cm is May, avg
Jan-Apr, if cm is June, avg Jan-May, etc. I tried an If statement but
apparently Excel won't allow that many IF's. As always, very much appreciate
your assistance!

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
change range for pivot table on refresh Dan Excel Discussion (Misc queries) 2 March 7th 06 11:32 PM
Match function...random search? Les Excel Worksheet Functions 10 July 28th 05 11:54 AM
Is there a way to average if in excel when looking at a range of d Aaron Excel Worksheet Functions 1 July 14th 05 08:20 PM
formula to calculate the average of a range basing on condition Krishna Mohan Excel Worksheet Functions 4 June 21st 05 11:26 AM
average of visible cells in a filtered range dave roth Excel Worksheet Functions 5 May 23rd 05 12:56 PM


All times are GMT +1. The time now is 07:33 PM.

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

About Us

"It's about Microsoft Excel"