Michael Cole
Analyst · Sidoti
Thanks, Matt. I'll start by reviewing our income statement. Overall, our sales for the quarter increased 9%, primarily due to an increase in lumber prices. Although we had significant changes within each market, our overall unit sales were flat with last year. By market, our sales for the retail market decreased 2% due to a 10% decrease in unit sales, offset by an 8% increase in prices due to the lumber market. Within this market, sales to our big-box customers decreased 14%, while our sales to other retailers increased 21%.
Last quarter, we mention that we lost some lower margin business with one of our big-box customers this year, and one of our objectives has been to replace that business with sales to other retail customers. As you can see from the numbers, we've had some initial success accomplishing that objective.
Our sales in the manufactured housing market increased 25% due to a 14% increase in unit sales and 11% increase in prices due to the lumber market. The unit increase is primarily due to industry production of HUD-Code homes, which increased 16% year-over-year. In addition, approximately 1/3 of our sales for this market are for modular homes, and the most recent data for modular housing sources indicates those shipments are up 19% year-over-year.
Our sales to the residential construction market increased 6%, primarily due to an increase in pricing as our unit sales were flat year-over-year. By comparison, housing starts to experience the year-over-year increase of 26% between the months of March and May. Our decline in market share was anticipated and is due to our focus on profitability. This segment is still challenged with excess capacity so we continue to be selective in the business that we take in order to improve our performance. Collectively, our plants that primarily served this market have been profitable for 4 straight quarters and reported a year-over-year increase in operating profit of approximately $3.5 million this quarter.
Finally, our sales to the industrial market increased 25%, comprised of a 7% increase in pricing and an 18% increase in unit sales. The story here is similar the past quarters. Our plants are doing a great job of adding new customers and increasing sales with the existing customers, taking advantage of the capital investments we've made in this business. One of the additional positives I see is that the increase in our industrial sales is spread out over several regions, which to me is a clear sign of uniform focus and success.
Moving down the income statement. Our second quarter gross profit percentage as a percentage of sales increased by 170 basis points, primarily due to the favorable impact of selling into a rising lumber market in Q2, while we were selling into a falling market throughout 2011. In addition, we have a more favorable product mix in 2012 in that we're currently selling less low-margin commodity products. These improvements more than offset the effect of continued pricing pressure we face in each of our markets.
In addition, I should point out that lumber prices have fallen each week since the end of May. While we've attempted to keep inventories lean and in line with current demand, if this trend continues, it may result in tougher year-over-year gross margin comparisons in the third quarter.
SG&A expenses increased by almost $3.8 million or 8.3%. This increase was driven by a $4 million increase in accrued bonus and incentive compensation expense tied to profitability and a $1.7 million increase in bad debt expense as we experienced a bad debt recovery that is very significant in 2011. These increases were primarily offset by a $900,000 decrease in base compensation and related expenses and a $700,000 decrease in amortization expense. While we're always striving for improvement, overall, we're very proud of how our people continue to proactively manage these costs.
Our operating profits were positively impacted by a net gain on the disposition of property, plant and equipment this quarter totaling $6.9 million, which resulted in pretax proceeds of over $12 million. Conversely, our early retirement and severance cost resulted in a $3.5 million charge to operating profits in 2011.
As a result of sales, margin and cost improvements, our diluted EPS increased $0.88 per share in 2012. Excluding the net gain on the sale of property in 2012 and early retirement and severance cost in 2011, our diluted EPS was approximately $0.67 in 2012 compared to $0.33 last year.
Moving on to our cash flow statement. Our cash flow used in operations was $20 million this year compared to $58 million last year. Our operating cash flow in 2012 is comprised of net earnings of $22 million and $9 million in noncash expenses, offset by a $51 million increase in working capital since December. Working capital increased since year end due to the normal seasonality of our business. Investing activities include capital expenditures of almost $16 million, which is comprised of about $7 million of expansionary capital expenditures for future growth and sale.
With respect to our balance sheet, our total net debt was at $68 million compared to $85 million a year ago. We currently anticipate strong cash flows for the balance of the year, providing us with plenty of liquidity to support future growth.
That's all I have in financials, Matt.