I made some minor modifications to the sheet - moved Total to one of first rows - may seem crazy but gives easiness at the stage of preparying.
once the sheet is almost ready - you can move it below data (as most people got used to.)
All formulas below refer to this new layout.
First, to have universal formula, I'd get rid of TODAY in calculation of next payment for specific period. Instead I would use the most recent payday.
Then use WORKDAY(day_before,1) which will return first working day at or after the day instead of calculations of day of week etc.
WORKDAY allows also to include bank holidays in calculations - optional third argument.
so now in E4 we have:
copied down and right
(note that I changed Campus payment mode to quarterly to better show how it works)
Next: everything for one payday can (and shall - to keep things neat looking) be done in single column.
Instead of columns returning true/false for date conditions and then SUMIF I used SUMIFS (You do not disclosed excel version in your profile, but the attachment is in xlsx format introduced together with SUMIFS function in excel 2007)
in E2:
and copied right
This works perfect for future periods, but wor this bi-week, as you were payed on 11 and mortgage already has been payed you are more interested in E3:
(this one not copied - only here)
I also used two simple conditional formatting rules based on AND formulas
And that's it.
3 formulas for whole sheet.
(plus your paydays calculations - 1 and a half ;-) formula
Why half? Because =F1+14 i'd count as no more than 0.25 of "whole formula" :-P
Elegant - isn't it? :-D
Enjoy!
Bookmarks