Yodelayheewho
Member
Hello Forum!
I have a long column with dates marking the end of each quarter and I would like a formula that will give me the number of weeks within each quarter.
In B2, I have the formula: =IF(A2<>A1,ROUNDDOWN(A2-A1,1)/7,B1). You can see I've run into a couple of issues. First, B2 and B3 results are not what I want and I can't seem to get the results rounded down to a whole number (no decimals). Thank you in advance for your consideration!
I have a long column with dates marking the end of each quarter and I would like a formula that will give me the number of weeks within each quarter.
In B2, I have the formula: =IF(A2<>A1,ROUNDDOWN(A2-A1,1)/7,B1). You can see I've run into a couple of issues. First, B2 and B3 results are not what I want and I can't seem to get the results rounded down to a whole number (no decimals). Thank you in advance for your consideration!
A | B | |
---|---|---|
1 | Quarter | Weeks in Quarter |
2 | 12/31/2020 | #VALUE! |
3 | 12/31/2020 | #VALUE! |
4 | 3/31/2021 | 12.85714286 |
5 | 3/31/2021 | 12.85714286 |
6 | 3/31/2021 | 12.85714286 |
7 | 3/31/2021 | 12.85714286 |
8 | 6/30/2021 | 13 |
9 | 6/30/2021 | 13 |
10 | 9/30/2021 | 13.14285714 |
11 | 9/30/2021 | 13.14285714 |
12 | 12/31/2021 | 13.14285714 |