I am using the following formula with ctrl+shift+enter to calculate the total number of cells that match month and date in certain cell (L8) here. I keep getting a zero. I tried this same formula to compare just one cell (so instead of putting $D$2:$D$1376 I put in only D17 and I get a 1 which means my date formats are ok... I checked few other cells too) but when I use it with range it doesn't work.
Any insights why its not working. Any other better way of doing this?
=SUM(IF(AND(MONTH($D$2:$D$1376)=MONTH(L8),YEAR($D$2:$D$1376)=YEAR(L8)),1,0))
Thank you in advance,
Jay
Bookmarks