Problem:
In the range A2:B6 are file names and their corresponding creation date.
How could we, for example, count the number of Excel files (".xls") created in April?
Solution:
Use the SUMPRODUCT, MONTH, and RIGHT functions as shown in the following formula:
=SUMPRODUCT((MONTH(B2:B6)=C2)*(RIGHT(A2:A6,3)=C3))
Screenshot // Counting the Number of Excel Files in a List According to File Type and Date Criteria
The applications/code on this site are distributed as is and without warranties or liability. In no event shall the owner of the copyrights, or the authors of the applications/code be liable for any loss of profit, any problems or any damage resulting from the use or evaluation of the applications/code.