+ Reply to Thread
Results 1 to 2 of 2

Moving average line continues after data stops

  1. #1
    Registered User
    Join Date
    08-06-2009
    Location
    New York, New York
    MS-Off Ver
    Excel X for Mac
    Posts
    1

    Moving average line continues after data stops

    I put together a little spreadsheet to help with weight loss--it tracks weight, along with a 5-day moving average and a goal line. For some reason, even though my "5-day average" data set shows no value for the days for which there is no value, the chart is plotting it as 0.

    Is there any way to make the line end where the data stops?

    I've attached an image of the way it looks on my screen, along with the spreadsheet.

    Thanks!
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,648

    Re: Moving average line continues after data stops

    Try this: Instead of
    =IF(B6=""; ""; AVERAGE(B2:B6))
    write this formula
    =IF(B6=""; NA(); AVERAGE(B2:B6))

    And extend down...

    If it's ugly for you to see #N/A try to solve it with conditional formating

+ 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