+ Reply to Thread
Results 1 to 2 of 2

Return averages based on day, week, month and year, from dates in column.

  1. #1
    Registered User
    Join Date
    07-12-2014
    Location
    usa
    MS-Off Ver
    2010
    Posts
    24

    Return averages based on day, week, month and year, from dates in column.

    Hey folks, hoping someone can point me in the right direction here.
    Currently, if I want an answer to these averages, I am literally counting cells and inputting that number into a simple formula. Would love to automate it.

    In the attached s/s, please note the yellow and blue cells.

    This s/s is recording daily electric usage (grid tied solar, so the negative numbers are correct). I would like to calculate the following for the blue cells:
    Daily Average. Total electric usage divided by the quantity of days that have had their cells populated.
    Weekly Average, from Monday through Sunday totaled, then divided by number of complete weeks.
    Monthly average, Full months totaled and divided by number of completed months.
    Annual average, which will obviously take a long time to return a result, but same criteria as months.

    As an aside, unrelated to the topic, in the yellow cell, I'd like to not have to adjust the formula on a daily basis. Because of the simple formula I use, cell minus cell, I end up with a large negative number in the calculated cell that does not yet have a corresponding reading entered. Is there a way to have my total ignore this last cell, which, of course, moves every day?

    Thanks in advance!

    Brett
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Return averages based on day, week, month and year, from dates in column.

    Hey Brett,

    Doing a quick Pivot Table and setting the values to Average instead of Sum is the easiest way to do your problem. See the attached where I've added a sheet 1 with the pivot. Right click in the Pivot in Col A and then on GROUP. It will give you options that will lead to your answers.
    PT Group to show Averages by week or.xlsx

    read more at
    http://www.contextures.com/xlPivot07.html
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Days of the month and week based on name month/year
    By RickMcc in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-01-2016, 03:22 PM
  2. Countif based on the Month and Year of a column of dates
    By Motox in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-20-2015, 12:18 AM
  3. [SOLVED] Trying to return the week number of dates in a fiscal year
    By NedFlanders in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-03-2013, 09:16 PM
  4. Return value of the last week of the month based on the year and month
    By stevekho2 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-14-2013, 11:04 AM
  5. Replies: 22
    Last Post: 11-20-2012, 02:44 AM
  6. Help with Formulae to return a Month and Year only from a column of dates
    By rick.parry in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2012, 08:52 AM
  7. Replies: 4
    Last Post: 01-20-2010, 10:10 AM

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