Share via

AVERAGEIF multiple dates

Anonymous
2024-01-17T15:55:12+00:00

Hi, so I'm trying to generate an average based on many rows with the same date but at different times of the day. I need the formula to look at my date column on one table and then go to the source data table, look in the date column and take an average of all the values against that date. I know this is achievable but I can't figure it out! Please see versions of the tables below. Any ideas greatly appreciated!

Example of base data set

Date Date/Time Yellow Green Blue
01/01/24 01/01/24 08:00 1 1 0
01/01/24 01/01/24 12:00 0 1 0
01/01/24 01/01/24 16:00 1 1 1
01/01/24 01/01/24 20:00 1 1 1
02/01/24 02/01/24 08:00 1 0 1
02/01/24 02/01/24 12:00 1 0 1
02/01/24 02/01/24 16:00 1 0 0
02/01/24 02/01/24 20:00 1 0 1

I want the results to look like this:

Date Yellow Green Blue
01/01/24 75% 100% 50%
--- --- --- ---
02/01/24 100% 0% 75%
Microsoft 365 and Office | Excel | For education | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. HansV 462.6K Reputation points
    2024-01-17T16:19:21+00:00

    With data in A1:E9, and unique dates in A13:A14:

    .

    The formula in B13 is

    =AVERAGEIFS(C$2:C$9,$A$2:$A$9,$A13)

    Was this answer helpful?

    0 comments No comments