+ Reply to Thread
Results 1 to 4 of 4

How to calculate Average of daily data to fill missing values

  1. #1
    Registered User
    Join Date
    08-05-2013
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    4

    How to calculate Average of daily data to fill missing values

    Hello all,
    I have a time series data of daily precipitation for 25 years. These data have huge number of missing values. I want to reconstruct the missing values by calculating the mean of rainfall for before and after that specific date. For example the rainfall for date 1/1/1990 is missing. I want to calculate the average of all rainfall for dates 1/1/1985, 1/1/1986,…, 1/1/1989, 1/1/1991,…,1/1/2010 except the missing one. My question is how to write an equation in excel to do the operation fast. The attached file is a sample of work to be reconstructed. The red column is the SUM and MEAN of all data I calculated them manually but I need a faster way. Any help highly appreciated.
    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to calculate Average of daily data to fill missing values

    Hi,

    The AVERAGEIFS function will give you the mean of a dataset (and ignore non-numerical entries in its calculation), so, for example, in cell J2 of your sheet this formula will give you the average (mean) daily rainfall for 2nd April over the years given:

    =AVERAGEIFS($D$2:$D$9497,$B$2:$B$9497,H2,$C$2:$C$9497,I2)

    Copying this formula down will give similar results for the corresponding day/month in each row.

    Regards
    Last edited by XOR LX; 08-10-2013 at 12:50 PM.
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    08-05-2013
    Location
    malaysia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: How to calculate Average of daily data to fill missing values

    Thank you very much dear XOR LX. Your help was what I was looking for.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: How to calculate Average of daily data to fill missing values

    You're welcome.

+ 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. [SOLVED] I wish to calculate the daily average usage for any given piece of equipment
    By IPDaily in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2012, 09:52 PM
  2. average daily values from 30 min interval data
    By hcar in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-04-2010, 07:55 AM
  3. Calculate weighted average with missing values
    By Deiseman in forum Excel General
    Replies: 9
    Last Post: 06-08-2010, 10:03 AM
  4. Calculate an average daily expense cell
    By Canuck_in_Japan in forum Excel General
    Replies: 20
    Last Post: 02-08-2009, 03:24 AM
  5. How to calculate daily average?
    By excelmaster5000 in forum Excel General
    Replies: 2
    Last Post: 08-07-2008, 08:28 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