+ Reply to Thread
Results 1 to 3 of 3

Calculating a rolling 30-day valid-test average (without zeros)

  1. #1
    Registered User
    Join Date
    03-28-2011
    Location
    Port Arthur, Texas
    MS-Off Ver
    Excel 2007
    Posts
    4

    Calculating a rolling 30-day valid-test average (without zeros)

    Need help with calculating a rolling 30-day valid-test average. Tests with a result of zero are deemed invalid for this discussion. The zeros must be excluded from the average, which must consist of 30 valid results.

    The challenge here is the variable number of values which get evaluated... for example, 2/6/2010 in the attached example requires 36 calendar days to obtain 30 valid tests for the average. The frequency of zeros is also random. Help!

    Thanks in advance,

    Air Hugger
    Attached Files Attached Files
    Last edited by Air Hugger; 03-30-2011 at 06:18 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Calculating a rolling 30-day valid-test average (without zeros)

    Hi,

    I don't think your example of 5.15 calculated is correct since you are not including B32 & B27 which appear formatted as zero but the underlying values are 0.0280....& 0.06781 respectively.

    The formula you want in say C42 is
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-28-2011
    Location
    Port Arthur, Texas
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Calculating a rolling 30-day valid-test average (without zeros)

    Thanks, your formula works if no invalid tests exist; however, that doesn't expand or contract the range to capture 30 valid tests. Maddening stuff.

+ 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