» Counting the Number of Dates with Matching Month Criteria
CATEGORY - Excel Counting
VERSION - All Microsoft Excel Versions
The following formula was written to count the number of dates in column A that matched the month criteria in cell B2.
=COUNTIF(MONTH(A2:A6),B2)
However, on entry, an error occurred and the formula could not be used.
Solution 1:
Use the SUMPRODUCT and MONTH functions as shown in the following formula:
=SUMPRODUCT(--(MONTH(A2:A6)=B2))
Solution 2:
Use the SUM, IF, and MONTH functions as shown in the following Array formula:
{=SUM(IF(MONTH(A2:A6)=B2,1))}
Book Store:
Recommended Books:
- The McGraw-Hill Guide to Writing a High-Impact Business Plan: A Proven Blueprint for First-Time Entrepreneurs
- Flipping Properties: Generate Instant Cash Profits in Real Estate
- Retire Young, Retire Rich
- The Accounting Game : Basic Accounting Fresh from the Lemonade Stand
- The Basics of Finance: Financial Tools for Non Financial Managers
- Mastering Excel 2000 (for beginner)
No comments have been submitted.

