Comments on: Excel AVERAGEIF function to average cells with condition

Microsoft Excel has a few different functions to calculate an arithmetic mean of numbers. When you are looking to average cells that meet a certain condition, AVERAGEIF is the function to use. Continue reading

Comments page 2. Total comments: 46

  1. Hi! Hoping you could help me. Im trying to averageifs based on a period of 2 dates. How will the formula go?

    =AVERAGEIFS(survey!D:G,survey!A:A,"="&D4)

  2. In the table below, I have 8 temperatures for each day of the month and I want to calculate the average of temperatures for the same day:

    year month day temperature Average
    2000 January 1 10
    2000 January 1 20
    2000 January 1 30
    2000 January 1 15
    2000 January 1 32
    2000 January 1 26
    2000 January 1 18
    2000 January 1 23
    2000 January 2 12
    2000 January 2 22
    2000 January 2 34
    2000 January 2 16
    2000 January 2 19
    2000 January 2 26
    2000 January 2 24
    2000 January 2 28
    2000 January 3 18
    2000 January 3 19
    2000 January 3 21
    2000 January 3 22
    2000 January 3 23
    2000 January 3 19
    2000 January 3 20
    2000 January 3 24

    I'm really confused on how to do it.

      1. that works! thanks!!

  3. Hello,

    Wondering if you could help me with a query. I have a table detailing: Col A - department, Col B - name, Col C - initial salary, Col D - new salary.
    How do I find out the average salary increase per department using one formula, please? I created a new table, added the unique dept names (col H) and tried the following formula on column I:

    =averageif(A2:1000,H2,D2/C2-1), but it comes up with an error message and it won't work.

    Thank you and kind regards,

    1. Hello!
      If I understand your task correctly, the following formula should help:

      =AVERAGEIF(A1:A10,H1,D1:D10)-AVERAGEIF(A1:A10,H1,C1:C10)

      Please re-check the article above since it covers your task.

Post a comment



Thank you for your comment!
When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to
your query. We cannot guarantee that we will answer every question, but we'll do our best :)