looking for something similar, I have a start and end date, and three Quarters in different columns. I want the formula to check whether the date range is within the quarter, and if, so, to count the number of days that fall into that quarter. Then I was hoping to replicate that across the three columns and just change the date. I have the following formula, but I tried to add something else to it, and then excel spit it back, saying that there were too many formulas in the cell. Any thoughts? (M2 contains the start date, and N2 is the end date). Thanks!
=IF(AND(OR(M2>DATE(2009,10,1), M2<(DATE(2009,12,31))),OR(N2>DATE(2009,10,1), N2<(DATE(2009,12,31)))), (N2-M2+1)-IF(N2>DATE(2009,12,31), N2-DATE(2009,12,31),0)-IF(M2<date(2009,10,1), date(2009,10,1)-m2,0),="" )=""></date(2009,10,1),>