+ Reply to Thread
Results 1 to 16 of 16

average values per day from data with different dates

  1. #1
    Registered User
    Join Date
    03-14-2021
    Location
    Egypt
    MS-Off Ver
    Excel 365
    Posts
    10

    average values per day from data with different dates

    hello
    i have some data at different times on days as attach file and what i want its exreact average or min or max by day for C,P ,Cr with ignore zero val

    i use 365 office
    thanks
    Attached Files Attached Files
    Last edited by mami502003; 03-14-2021 at 09:45 AM. Reason: update

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,448

    Re: average values per day from data with different dates

    Welcome to the forum.

    Which version of Excel are you using? Please update your forum profile.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  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,194

    Re: average values per day from data with different dates

    One way:

    Dates:
    =UNIQUE(FILTER(INT(A2:A100),A2:A100<>""))

    Average (copied across):
    =AVERAGEIFS(B:B,B:B,"<>0",$A:$A,">="&$G3#,$A:$A,"<"&$G3#+1)

    similarly for min & max. see file.
    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

  4. #4
    Registered User
    Join Date
    03-14-2021
    Location
    Egypt
    MS-Off Ver
    Excel 365
    Posts
    10
    Quote Originally Posted by Glenn Kennedy View Post
    One way:

    Dates:
    =UNIQUE(FILTER(INT(A2:A100),A2:A100<>""))

    Average (copied across):
    =AVERAGEIFS(B:B,B:B,"<>0",$A:$A,">="&$G3#,$A:$A,"<"&$G3#+1)

    similarly for min & max. see file.
    Thanks for your help but can I make the date of day calculations start from 8 am and end at 8 am in next date day as example the d ay 21 start at 8 am 21 and end 22 am and the day 22 start at 8 am and end at 8 am 23 etc and can making this in the the file attach up

  5. #5
    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,194

    Re: average values per day from data with different dates

    You should have asked for that in Post 1...

  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,194

    Re: average values per day from data with different dates

    Try this... it looks a bit odd, but it's probably because your data set jumps from 2-3 January to 30-21 January... with nothing in between.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-14-2021
    Location
    Egypt
    MS-Off Ver
    Excel 365
    Posts
    10

    Re: average values per day from data with different dates

    I am sorry bu can give me the formula to make it if I have a lot of data in 30 day in month

  8. #8
    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,194

    Re: average values per day from data with different dates

    It should work. Try it on a larger dataset, adusting the ranges.

  9. #9
    Registered User
    Join Date
    03-14-2021
    Location
    Egypt
    MS-Off Ver
    Excel 365
    Posts
    10

    Re: average values per day from data with different dates

    excuse me when i copy the formula to another sheet and do the steps show in cell NAME and give me his message you cant change in array so where the wrong part can help me to making it on other data or any data i want to make its as this way
    Last edited by mami502003; 03-16-2021 at 08:40 AM. Reason: add

  10. #10
    Registered User
    Join Date
    03-14-2021
    Location
    Egypt
    MS-Off Ver
    Excel 365
    Posts
    10

    Re: average values per day from data with different dates

    Please have any method else unique formula because my 365 not update from it so any solution

  11. #11
    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,194

    Re: average values per day from data with different dates

    Please post a file shorlwing the error and confirm the Excel version that you were using.

  12. #12
    Registered User
    Join Date
    03-14-2021
    Location
    Egypt
    MS-Off Ver
    Excel 365
    Posts
    10

    Re: average values per day from data with different dates

    i have office 365 but the version is 1.910 and the UNIQUE & FILTER Formula start work from version 1.911 and updates closed from It in my company so any other way to do this else using UNIQUE & FILTER formula with my best regrades
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,366

    Re: average values per day from data with different dates

    For averages

    =AVERAGEIFS(B:B,$A:$A,">=" &$E3+8/24,$A:$A,"<" &$E3+32/24,B:B,"<>0")

    For MIN

    =AGGREGATE(15,6,(B:B)/((B:B>0)*($A:$A>=$E3+8/24)*($A:$A<$E3+32/24)),1)

    for MAX

    =AGGREGATE(14,6,(B:B)/((B:B>0)*($A:$A>=$E3+8/24)*($A:$A<$E3+32/24)),1)
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    03-14-2021
    Location
    Egypt
    MS-Off Ver
    Excel 365
    Posts
    10

    Re: average values per day from data with different dates

    thanks very much worked but if i want count how can do this

  15. #15
    Registered User
    Join Date
    03-14-2021
    Location
    Egypt
    MS-Off Ver
    Excel 365
    Posts
    10

    Re: average values per day from data with different dates

    thanks i solved its

  16. #16
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,366

    Re: average values per day from data with different dates

    in O3

    =COUNTIFS($A:$A,">=" &$E3+8/24,$A:$A,"<" &$E3+32/24,B:B,"<>0")
    Attached Files Attached Files

+ 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. Average highest 5 values for a range between dates.
    By Challiss in forum Excel General
    Replies: 3
    Last Post: 11-06-2020, 01:41 AM
  2. [SOLVED] Use INDEX MATCH to return data between dates and get AVERAGE of values in two colums
    By Jay S. in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-01-2015, 08:59 PM
  3. Replies: 3
    Last Post: 08-26-2014, 02:09 AM
  4. [SOLVED] Average speed between 2 dates using large list of values
    By MKF2013 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-09-2013, 06:12 AM
  5. Random Sample of Dates then Average Values
    By Hume in forum Excel General
    Replies: 0
    Last Post: 09-11-2010, 05:41 AM
  6. How do I obtain the Average Values between 2 dates?
    By gimiv in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-30-2006, 12:55 PM

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