How to Use FILTER and MONTH Formula in Excel to Extract Monthly Data (No VBA)
Table of Contents
Are you tired of manually filtering your Excel data month-by-month? Want to pull out all rows for a specific month with just one formula?
Hereβs a powerful trick:
Use FILTER
with the MONTH
function in Excel to dynamically extract rows by month β no filters, no VBA, and no extra effort.
In this detailed tutorial, youβll learn exactly how to use:
=FILTER(A2:D100, MONTH(B2:B100)=5)
β¦to instantly filter all rows where the date falls in May.
This simple but powerful formula can save hours of work, especially for HR teams, finance professionals, marketers, or anyone working with time-based data.
Letβs dive in!
π§ What Does This Formula Do?
The formula:
=FILTER(A2:D100, MONTH(B2:B100)=5)
does the following:
- Looks at the dates in column B (
B2:B100
) - Checks if each date falls in May (
MONTH = 5
) - Filters and returns full rows from
A2:D100
where this condition is true
Itβs like applying a dynamic filter without even touching the Filter button in Excel!
π Real-World Example
Letβs say you have a dataset of employee attendance:
Name | Date | Status | Hours |
---|---|---|---|
John | 01-04-2024 | Present | 8 |
Sarah | 10-05-2024 | Present | 7 |
Amit | 20-05-2024 | Absent | 0 |
David | 05-06-2024 | Present | 9 |
If you want to extract only the rows for May, just use:
=FILTER(A2:D100, MONTH(B2:B100)=5)
Youβll get only Sarah and Amitβs rows returned!
β Requirements
This formula works in:
- Excel 365
- Excel 2021 (with dynamic arrays)
- Excel for Web
β It will not work in Excel 2019 or earlier versions (as
FILTER
is not supported there).
π Why This Formula Is So Useful
- β Automatically updates when new data is added
- β Avoids using manual filters or pivot tables
- β Cleaner dashboards and reports
- β No helper columns needed
- β Works great for automation and templates
π§ͺ Understanding the Breakdown
π MONTH(B2:B100)
This part converts each date in column B into its numeric month (e.g., 5 for May).
π MONTH(B2:B100)=5
This creates an array of TRUE or FALSE values:
- TRUE for rows in May
- FALSE for others
π FILTER(A2:D100, ...)
Finally, FILTER
includes only those rows from A2:D100 where the condition is TRUE.
π― How to Change the Month Dynamically?
Donβt hardcode =5
. Make it dynamic using a reference cell:
=FILTER(A2:D100, MONTH(B2:B100)=E1)
If E1
contains 5
, itβll return May data. Change E1 to 6
, and boom β you now have Juneβs data.
Perfect for drop-down filters or dashboards!
π‘ Bonus: Add YEAR for More Precision
Want to extract data for May 2023 only?
=FILTER(A2:D100, (MONTH(B2:B100)=5)*(YEAR(B2:B100)=2023))
This ensures you’re not pulling May data from other years.
β οΈ Common Errors and Fixes
Error | Reason | Fix |
---|---|---|
#VALUE! | Using FILTER in unsupported Excel version | Use Excel 365 or Excel Online |
#CALC! | No data matches the condition | Wrap with IFERROR: =IFERROR(..., "No data found") |
Dates not filtered correctly | Column B may not have valid date formats | Check with ISNUMBER(B2) |
π― Use Cases for FILTER + MONTH Formula
This trick isnβt just academic β here are real-world scenarios where it shines:
β HR Attendance Reports
Pull only data for a selected month to review leaves, late entries, etc.
β Sales Team
Filter invoices generated in a specific month for reconciliation.
β Marketing Campaign Logs
Extract leads generated in a certain month for ROI tracking.
β School or College Records
Get attendance or assignment data filtered by academic month.
π Supercharge It With Drop-Down Month Filter
Create a dropdown in cell E1
:
- Go to Data > Data Validation
- Choose List
- Enter
1,2,3,4,5,6,7,8,9,10,11,12
Now link the FILTER formula to E1
and give users dynamic control.
π₯οΈ Want To Learn With Practice?
π¬ Final Thoughts
If you’re working with monthly reports, time-stamped logs, or financial data, then this FILTER + MONTH
combo is one of the best time-saving Excel hacks out there.
No more scrolling and filtering β just set the formula once and let Excel do the magic.
π Pro Tip: Combine this with SORT
, UNIQUE
, and TEXT
for next-level automation.
VLOOKUP Shortcuts β Top 10 VLOOKUP Shortcuts Every Excel User Must Memorize (2025 Guide)