<< vYear = (IYR(Quotedate)) vQ2009 = (IFEQ(.vYear,2009,Quotesubtotal,0)) vQ2010 = (IFEQ(.vYear,2010,Quotesubtotal,0)) >>
You must use the function IYR4 to get four-digit years. The (older) IYR function returns only two digits, so you're getting values of "9" and "10" which don't match 2009 and 2010. -- Larry

