I've more or less got this spreadsheet where I need it to be but was hoping to automate one last function. I've got it down to where my employees only need to enter in data into the yellow boxes. The first is the beginning of the current month and the second is the Monthly Admission Goal. From there it will auto calculate the amount of workdays (M-F) in the month and use that number to calculate how many daily referrals are needed to reach the goal. As they enter in data into the table it continues to adjust. All of that is working well (save a #DIV/0! error in cell H5 if they happen to meet their goal, in which case a zero now becomes part of the equation and it throws it off. I thought the MAX command for H4 would suffice and it's working appropriately for that cell but it still throws an error for H5. I'm assuming an IFERROR command could fix this but I have yet to figure that out.)
What I'd like to do is find a more precise solution for calculating the weekly goal column (H7 to H11). As you can see it simply divides the H1 cell into fifths. Ignore the /.75 portion of the formula as this is used to account for 25% loss from referral to actual admit. The issue with this is it does not account for shorter work weeks at the beginning and end of the month. For instance, June 2022 began on a Wednesday and will end on a Thursday. I'd like to have the weekly goal column calculate this appropriately. The most elegant solution is to likely build a new table that is actually based on a dynamic calendar but I've never done this before and had already built this one out pretty thoroughly before noticing the issue. A second, less elegant solution might be to come up with one or two more cells that require user input (for instance 'What day of the month does this month begin and end on') and go from there. As you can see I've copied formulas for each calculated cell over to the side (at bottom for the lower cells) if that help....
Looking for opinions, suggestions or solutions! I embedded a pic below and attached the workbook.
Referrals.jpg
Bookmarks