+ Reply to Thread
Results 1 to 3 of 3

YTD average - How do I create a formula?

  1. #1
    Dana
    Guest

    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. #2
    Biff
    Guest

    Re: 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" <[email protected]> wrote in message
    news:[email protected]...
    >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. #3

    RE: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1