Search Rows for Dates within a Given Month and Average Corresponding Numbers in Another Column

Kevin C

New Member
Joined
Feb 27, 2025
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have a Date Complete (column M) and a Days Overdue (column N). For example, a month (between Oct 1, 2024, and Oct 31, 2024), how do I average the Days Overdue over a range of days for the month? Also November 2024 and December 2024, etc.?

1740682540830.jpeg
 
Hi,
You can use the AVERAGEIFS function in Excel to filter the Days Overdue based on the Date Complete range.

Example formula for October 2024:
Excel Formula:
 =AVERAGEIFS(N:N, M:M, ">=2024-10-01", M:M, "<=2024-10-31")

For November 2024:
Excel Formula:
 =AVERAGEIFS(N:N, M:M, ">=2024-11-01", M:M, "<=2024-11-30")

For December 2024:
Excel Formula:
 =AVERAGEIFS(N:N, M:M, ">=2024-12-01", M:M, "<=2024-12-31")

Dynamic Formula
If you want to make this dynamic (e.g., for any month), you could reference specific cells for the month start and end dates, like:
A1: "Start Date" (e.g., 2024-10-01)
A2: "End Date" (e.g., 2024-10-31)

Then your formula could look like this:

Excel Formula:
 =AVERAGEIFS(N:N, M:M, ">=" & A1, M:M, "<=" & A2)

This way, you can change the dates in A1 and A2 to calculate the average for any month.
 
Upvote 0

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top