My sheet named "Data" has a range of dates in column B that include MM/DD/YY as in 1/01/2022, 1/03/2022, 1/03/22, 1/06/2022, 3/06/2022 and so on.
My sheet named "Dashboard" in column B has the entire month as in 1/01/2022, 2/01/2022, 3/01/2022 and so on, it doesn't include the day but rather all days are considered "01".
B4 of this sheet has 1/01/22. In C4 of this sheet I need a formula that will look in Data $B:$B for anything and COUNT everything 1/01/2022 - 1/31-2022 and give me that number. Using the data in the first line of this post, the formula would produce 4 as the result. (note there are two entries for 1/03/2022)
I'm using this formula: =COUNTIFS(Data!$B:$B,">=1/01/22",Data!$B:$B,"<=1/31/22") and it works but I have to move down cell by cell and change the formula to =COUNTIFS(Data!$B:$B,">=2/01/22",Data!$B:$B,"<=2/28/22") and =COUNTIFS(Data!$B:$B,">=3/01/22",Data!$B:$B,"<=3/31/22") and so on, over and over. This is doable, but it's time consuming, especially if I need to go back several years.
Is there an alternative way to do this so a formula looks for anything in Data!$B:$B that includes anything that includes the MM/YY that are in column B of Dashboard?
Thanks in advance
My sheet named "Dashboard" in column B has the entire month as in 1/01/2022, 2/01/2022, 3/01/2022 and so on, it doesn't include the day but rather all days are considered "01".
B4 of this sheet has 1/01/22. In C4 of this sheet I need a formula that will look in Data $B:$B for anything and COUNT everything 1/01/2022 - 1/31-2022 and give me that number. Using the data in the first line of this post, the formula would produce 4 as the result. (note there are two entries for 1/03/2022)
I'm using this formula: =COUNTIFS(Data!$B:$B,">=1/01/22",Data!$B:$B,"<=1/31/22") and it works but I have to move down cell by cell and change the formula to =COUNTIFS(Data!$B:$B,">=2/01/22",Data!$B:$B,"<=2/28/22") and =COUNTIFS(Data!$B:$B,">=3/01/22",Data!$B:$B,"<=3/31/22") and so on, over and over. This is doable, but it's time consuming, especially if I need to go back several years.
Is there an alternative way to do this so a formula looks for anything in Data!$B:$B that includes anything that includes the MM/YY that are in column B of Dashboard?
Thanks in advance