+ Reply to Thread
Results 1 to 6 of 6

How to calculate daily average

  1. #1
    Forum Contributor
    Join Date
    07-25-2019
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2016
    Posts
    200

    Question How to calculate daily average

    Hello Everyone,
    i've a sample file with example & its result for clear understanding.

    how i can do it with formula for faster result from large data.

    based to column D (Y/N), if yes then find the average of a particular date, if No then take the Yes to get the average of a particular date.
    if the NO changed to YES then it should include automatically to get the average.

    thanks in advance
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-27-2015
    Location
    Abu Dhabi, U.A.E
    MS-Off Ver
    Office 365 | 2016
    Posts
    696

    Re: How to calculate daily average

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: How to calculate daily average

    E2:
    =IF(D2="No",0,AVERAGEIFS(C:C,A:A,A2,D:D,"Yes"))

    and in G2:
    =SUMIFS(E:E,B:B,B2,A:A,"<="&A2)/F2

    delivers your expected results... But check that your expected results REALLY are what you want. The logic behind them seems very strange to me.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: How to calculate daily average

    E2=SUMIFS(C$2:C$12,D$2:D$12,"Yes",A$2:A$12,A2)/COUNTIFS(D$2:D$12,"Yes",A$2:A$12,A2)*(D2="Yes")
    Try above formula, copy and paste towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Forum Contributor
    Join Date
    07-25-2019
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2016
    Posts
    200

    Re: How to calculate daily average

    thanks a lot everyone it working

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,063

    Re: How to calculate daily average

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It would also be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

+ 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. Calculate average flow on 10 daily basis
    By chsaleem in forum Excel General
    Replies: 5
    Last Post: 10-09-2018, 04:01 AM
  2. [SOLVED] Need a Formula to calculate Average Daily Balance and Interest
    By yomamma34 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-04-2018, 05:03 PM
  3. Replies: 2
    Last Post: 08-24-2016, 05:52 AM
  4. How to calculate Average of daily data to fill missing values
    By mahjid in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-11-2013, 05:46 AM
  5. [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
  6. Calculate an average daily expense cell
    By Canuck_in_Japan in forum Excel General
    Replies: 20
    Last Post: 02-08-2009, 03:24 AM
  7. 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