+ Reply to Thread
Results 1 to 13 of 13

AVERAGEIFS function not working in some of the data sheets

  1. #1
    Registered User
    Join Date
    07-23-2018
    Location
    Cairo, Egypt
    MS-Off Ver
    2016
    Posts
    25

    Question AVERAGEIFS function not working in some of the data sheets

    Hey, my Friends ...

    I have a strange case in my attached data files ...

    I have different daily data files for meteorology, and I'm applying the AVERAGEIFS function on them, but I have only results for the file (Sues_gulf_over_water_Daily_19820101) in one of its sheets but not all the other sheets ...

    Then I have tried the same function on the other file and it fails completely in all the sheets of it ...

    I have checked the cell formates for both files and adjusted the date cells to date format and the data columns to a number format after getting the #DIV/0 error but this didn't fix the error ...

    I have no other clue for this case ...

    can anybody help?

    Thanks ...

  2. #2
    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,206

    Re: AVERAGEIFS function not working in some of the data sheets

    Dates in E are text

    and I changed dates in D
    Attached Files Attached Files

  3. #3
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: AVERAGEIFS function not working in some of the data sheets

    The problem is that column E is not formatted as date, you can see that when you place a formula in column V
    Please Login or Register  to view this content.
    You get the value 0

    If you now format one value in column E as date and retype it you'll see it works, so you've got some work to do.

    An average cannot be calculated in divide by 0
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  4. #4
    Registered User
    Join Date
    07-23-2018
    Location
    Cairo, Egypt
    MS-Off Ver
    2016
    Posts
    25

    Re: AVERAGEIFS function not working in some of the data sheets

    I have tried now to apply the Date format to the Date column but no change happened and it still gives the #DIV/0 error ...
    and also tried to copy the format from the file that you have fixed to my file but with no success ...

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

    Re: AVERAGEIFS function not working in some of the data sheets

    I gave you a solution in post #2

  6. #6
    Registered User
    Join Date
    07-23-2018
    Location
    Cairo, Egypt
    MS-Off Ver
    2016
    Posts
    25

    Re: AVERAGEIFS function not working in some of the data sheets

    Quote Originally Posted by JohnTopley View Post
    I gave you a solution in post #2
    I have tried your solution, but it gives me the same error on my file ...

    is there any way to refresh the file or reset its format ?

  7. #7
    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,206

    Re: AVERAGEIFS function not working in some of the data sheets

    Look at Column D date conversion (as per my post)


    =DATEVALUE(C2&"/"&B2&"/"&A2)

    Use D instead of E in the formula or copy D to E (values)

  8. #8
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: AVERAGEIFS function not working in some of the data sheets

    Great John, I think the OP did not understand me when I said the formatting the cells was not enough

  9. #9
    Registered User
    Join Date
    07-23-2018
    Location
    Cairo, Egypt
    MS-Off Ver
    2016
    Posts
    25

    Arrow Re: AVERAGEIFS function not working in some of the data sheets

    Quote Originally Posted by JohnTopley View Post
    Look at Column D date conversion (as per my post)


    =DATEVALUE(C2&"/"&B2&"/"&A2)

    Use D instead of E in the formula or copy D to E (values)
    ok, I didn't get it the first time, but after reviewing your file I found a loop error every month for dates between the 12th of the month till the end of it, then normal values starting from day one 1st of the month till the 12th of it, and the error loops again ...

    and when applying it to my file it gives #VALUE error after the 12th day till the end of the data column.
    Last edited by mostafa.elnazer; 04-26-2021 at 02:34 PM. Reason: adding additional description

  10. #10
    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,206

    Re: AVERAGEIFS function not working in some of the data sheets

    So is it working or not?

  11. #11
    Registered User
    Join Date
    07-23-2018
    Location
    Cairo, Egypt
    MS-Off Ver
    2016
    Posts
    25

    Re: AVERAGEIFS function not working in some of the data sheets

    Quote Originally Posted by JohnTopley View Post
    So is it working or not?
    no, not working for my side ... (attached is the file you fixed), I have added another year data and applied the same function but no luck.
    Attached Files Attached Files
    Last edited by mostafa.elnazer; 04-26-2021 at 03:03 PM.

  12. #12
    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,206

    Re: AVERAGEIFS function not working in some of the data sheets

    I copied the formula down with NO errors: I used column D in your formula.

    PLUs MAX/MIN

    =AGGREGATE(14,6,$J$2:$J$366/($D$2:$D$366>=$T2)/($D$2:$D$366<=EOMONTH($T2,0)),1)

    =AGGREGATE(14,6,$K$2:$K$366/($D$2:$D$366>=$T2)/($D$2:$D$366<=EOMONTH($T2,0)),1)
    Last edited by JohnTopley; 04-26-2021 at 03:43 PM.

  13. #13
    Registered User
    Join Date
    07-23-2018
    Location
    Cairo, Egypt
    MS-Off Ver
    2016
    Posts
    25

    Re: AVERAGEIFS function not working in some of the data sheets

    I will check again and give you feedback ...

    thanks a lot ...

+ 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] AverageIfs stops working
    By bob33 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2020, 05:27 PM
  2. [SOLVED] Google sheets: Transpose function not working/populating data on other cell
    By rayted in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 08-18-2019, 10:31 AM
  3. AVERAGEIFS array across multiple sheets - omit blank data
    By Webbdruid in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-05-2019, 06:04 AM
  4. AVERAGEIFS not working
    By emielbrak in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-18-2015, 10:27 AM
  5. DIVERROR for averageifs on data from 2 sheets
    By damonjasso in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-15-2015, 02:51 PM
  6. [SOLVED] Modifying AVERAGEIFS function to include certain data
    By Ezomz in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-14-2013, 11:35 AM
  7. Using AVERAGEIFS function to average a smaller subset of criteria data
    By RJS5062 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-22-2012, 04:19 PM

Tags for this Thread

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