Calculate Monthly Minimum Values in Excel Without MINIFS
Question details
Find the minimum value for a selected month and year in a worksheet containing daily dates and values.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Dates are listed in column A, values are in column B, and the user wants to select a month and year to calculate the monthly minimum.
- Observed behavior
- The desired result is the smallest value associated with a date in the selected month and year.
Check that column A contains actual spreadsheet dates and column B contains numeric values. Enter the month as a number from 1 to 12 in E2 and the four-digit year in E3.
Use AGGREGATE to Find the Monthly Minimum
Use this formula when you want to filter dates by month and year without using MINIFS.
AGGREGATE ignores the division errors produced for rows outside the selected month and returns the smallest remaining value.
Type the month number in E2 and the year in E3.
Select an empty cell and enter =AGGREGATE(15,6,B2:B1000/((MONTH(A2:A1000)=E2)*(YEAR(A2:A1000)=E3)),1).
Change A2:A1000 and B2:B1000 in the formula to match your data, keeping the ranges the same size and aligned by row.

Use MINIFS With Date Boundaries
Use MINIFS when it is available and you prefer to compare dates against the start and end of the selected month.
Find a Monthly Minimum in WPS Spreadsheets
Use a MINIFS formula with date boundaries in WPS Spreadsheets to find the smallest value for a selected month and year.
- 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
- 2. Set the month and year: Enter a month number in E2 and a four-digit year in E3.
- 3. Calculate the minimum: In an empty cell, enter =MINIFS(B2:B1000,A2:A1000,">="&DATE(E3,E2,1),A2:A1000,"<"&DATE(E3,E2+1,1)), adjusting the ranges to match your data.
- 4. Check the result: Compare the result with the matching rows in columns A and B, especially if the formula returns zero.

Frequently Asked Questions
Why does the AGGREGATE formula return an error?
There may be no numeric values for the selected month and year. Check E2 and E3, confirm column A contains real dates, and verify that the ranges cover your data.
Why is my monthly minimum zero when the values appear to be positive?
With the AGGREGATE formula, a blank value cell on a matching date can be treated as zero. Check column B for blanks in the selected month. MINIFS can also return zero when no cells meet its criteria.
Can the formulas handle dates that include times?
Yes. MONTH and YEAR read the date portion in the AGGREGATE formula. The MINIFS formula uses a start-inclusive and end-exclusive date range, so it also includes times within the selected month.
How do I use a different date or value column?
Replace A2:A1000 with your date range and B2:B1000 with your value range in the formula. Both ranges must have the same number of rows and correspond to each other.




