ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   countif and dates (https://www.excelbanter.com/new-users-excel/4578-countif-dates.html)

JAF

countif and dates
 
My spreadsheet includes a column with the date (mm/dd/yr) of the
entry. Can I use countif to count the number of entries that were made
in each month? Thanks, JAF

Biff

Hi!

Try this:

=SUMPRODUCT(--(MONTH(F1:F10)=1))

Replace the 1 with the appropriate month number.

Biff

-----Original Message-----
My spreadsheet includes a column with the date (mm/dd/yr)

of the
entry. Can I use countif to count the number of entries

that were made
in each month? Thanks, JAF
.


Peo Sjoblom

Just a heads up in case there might be blank cells, the formula will count
blank cells as January

=SUMPRODUCT(--(MONTH(F1:F10)=1),--(ISNUMBER(F1:F10)))

will not


Regards,

Peo Sjoblom


"Biff" wrote:

Hi!

Try this:

=SUMPRODUCT(--(MONTH(F1:F10)=1))

Replace the 1 with the appropriate month number.

Biff

-----Original Message-----
My spreadsheet includes a column with the date (mm/dd/yr)

of the
entry. Can I use countif to count the number of entries

that were made
in each month? Thanks, JAF
.




All times are GMT +1. The time now is 05:27 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com