Hi, I am struggling with my formula to calculate my monthly percentages and show the variance across each month as the projects approaches the end. For instance, we have a project that may have started 10/1/2024 and is going to 10/12026, It shows 0% not acknowledging the months or years in between. Or if the project starts in Jan 2025 and ends in May 2026 or later, it will not calculate further than May 2025. It isn't acknowledging years outside of 2025. It calculates perfectly for the current year so it seems, but not outside of current year.
The formula takes the start and end date and pulls the month number then calculates time worked into a monthly percentage then it has a variance to reduce with each passing month. Not sure if it is right but I have been working on this for 2 days and am stuck!
Here is the formula I am using:
=IF(AND(MONTH(DATE(YEAR(Start@row), 1, 1)) <= MONTH(End@row), MONTH(DATE(YEAR(Start@row), 1, 1)) >= MONTH(Start@row)), ([Hours Worked Weekly]@row / 8 / (MONTH(End@row) / MONTH(Start@row) * 0.1 * 4.33 + 1)), 0)
Here is a screenshot of my table.