I'm trying to calculate the number of days within a given period, but split it where one total is the number of days that falls anytime before 12/31/2012 and the other totals the number of days anytime after 01/01/2013. And also, if the period is less than or equal to 12/31/2012, then cell I19 will calculate the number of days that is less than 12/31/2012 and leave cell I22 blank, and vise versa. I'm thinking I might have to use an "if" and "< or >" formula, but I don't know how. I've attached the spreadsheet that I'm working on. I managed to use a formula that splits the days (cell I19, calculates the days <12/31/2012, and cell I22 calculates the days >01/01/2013) but when I insert a date that is all in 2012 or all in 2013 (ex: 5/1/2012-5/30/12, or 5/1/2013-5/31/2013), it doesn't calculate it correctly The yellow highlighted cells are the ones I'm trying to figure out. Please help.