Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dana
 
Posts: n/a
Default YTD average - How do I create a formula?

A column of monthly totals
Jan 400
Feb 800
Mar 0
Apr 0
May 0
Need a simple formula that will return an average on non zero months ie: 600
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default YTD average - How do I create a formula?

Hi!

One way:

Entered as an array using the key combo of CTRL,SHIFT,ENTER:

=AVERAGE(IF(B1:B5<0,B1:B5))

Biff

"Dana" wrote in message
...
A column of monthly totals
Jan 400
Feb 800
Mar 0
Apr 0
May 0
Need a simple formula that will return an average on non zero months ie:
600



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default YTD average - How do I create a formula?

"Dana" wrote:
A column of monthly totals
Jan 400
Feb 800
Mar 0
Apr 0
May 0
Need a simple formula that will return an average on
non zero months ie: 600


If you don't like working with array formulas, you could do
the following:

=SUMIF(A1:A4,"<0")/COUNTIF(A1:A4,"<0")

But I wonder why you think ignoring zero months gives you
the YTD average.
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 do I create a moving average in Excel? SamA Excel Discussion (Misc queries) 9 January 4th 06 11:17 PM
Formula for determing average based on weighting John Sullivan Excel Worksheet Functions 2 December 16th 05 08:21 AM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
How do I create a 26 'tier' IF formula? callum Excel Discussion (Misc queries) 5 October 23rd 05 04:48 PM
How to create specific formula STS Excel Worksheet Functions 4 May 2nd 05 01:44 AM


All times are GMT +1. The time now is 09:44 AM.

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"