ThatExcelLife
New Member
- Joined
- Nov 2, 2017
- Messages
- 18
Hi Team!
I am banging my head against a wall on this excel issue. Please see below. What I have on the top row is the start of a new week (i.e. 30-Apr-2022 means the 7 day period that starts on 30-Apr-2022 and ends on 6-May-2022). what I am attempting to do is have a formula that will return 6 days in cell C2, as in there are 6 days in the 7 day period starting 30-Apr-2022 in the month of May (cell A2). in cell G2, the formula should return 4 days, as in there are 4 days in the month of May between 28-May-2022 and 6-June-2022. Any week that is complete in the month of May should be 7.
The idea is to drag the formula down to calculate the same for June, July, and so on.
It seems simple but I am crossing wires such that I cannot get to a perfect 31 days for May or 30 days for June.
Further, I do not want to use DATEDIF as a function since its not the standard function and when I share the sheet, it might crash on another's excel.
Any help would be appreciated!
I am banging my head against a wall on this excel issue. Please see below. What I have on the top row is the start of a new week (i.e. 30-Apr-2022 means the 7 day period that starts on 30-Apr-2022 and ends on 6-May-2022). what I am attempting to do is have a formula that will return 6 days in cell C2, as in there are 6 days in the 7 day period starting 30-Apr-2022 in the month of May (cell A2). in cell G2, the formula should return 4 days, as in there are 4 days in the month of May between 28-May-2022 and 6-June-2022. Any week that is complete in the month of May should be 7.
The idea is to drag the formula down to calculate the same for June, July, and so on.
It seems simple but I am crossing wires such that I cannot get to a perfect 31 days for May or 30 days for June.
Further, I do not want to use DATEDIF as a function since its not the standard function and when I share the sheet, it might crash on another's excel.
Any help would be appreciated!
23-Apr-2022 | 30-Apr-2022 | 7-May-2022 | 14-May-2022 | 21-May-2022 | 28-May-2022 | 4-June-2022 | 11-June-2022 | |
May 2022 | 0 | 6 | 7 | 7 | 7 | 4 | 0 | 0 |
June 2022 | 0 | 0 | 0 | 0 | 0 | 4 | 7 |