![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 1
|
I have a range of cells each containing a date (day-mo-yr). I'd like to count the number of cells with a January date.
|
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,315
|
Quote:
=SUMPRODUCT((MONTH(A2:A100)=1)+0) |
|
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, CO
Posts: 1,744
|
You could use
=SUMPRODUCT((MONTH(A1:A10)=1)*ISNUMBER(A1:A10)) for January. substitute the month number for the =1 representing January. Note this not year specific. Post Script - I missed Aladin's post. I believe these formulas will behave identically over a range with no blanks. I threw in the isnumber part in case you do have blanks, which would only throw you off when calculating January. good luck [ This Message was edited by: IML on 2002-05-22 11:51 ] |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|