BrutalLogiC
Active Member
- Joined
- Feb 26, 2006
- Messages
- 267
- Office Version
- 2016
- Platform
- Windows
Hi I was given a spreadsheet with the formula below which is counting the number of entries in a given month:
{=SUM(IF(MONTH(Sheet1!$V$1195:$V$1481)=MONTH(E4),IF(YEAR(Sheet1!$V$1195:$V$1481)=YEAR(E4),1,0),0))}
column V has dates entered like dd/mm/yyyy
E4 = 01/01/2021
E5 = 01/02/2021
etc
is there a better way of doing this formula so it's not an array....
{=SUM(IF(MONTH(Sheet1!$V$1195:$V$1481)=MONTH(E4),IF(YEAR(Sheet1!$V$1195:$V$1481)=YEAR(E4),1,0),0))}
column V has dates entered like dd/mm/yyyy
E4 = 01/01/2021
E5 = 01/02/2021
etc
is there a better way of doing this formula so it's not an array....