Barbara Rentler
Analyst · the SEC.
Now I'd like to turn the call over to Barbara Rentler, Chief Executive Officer
Good afternoon. Joining me on our call today are Michael O'Sullivan, President and Chief Operating Officer; Gary Cribb, Group Executive Vice President, Stores and Loss Prevention; John Call, Executive Vice President, Finance and Legal; Michael Hartshorn, Executive Vice President and Chief Financial Officer; and Connie Kao, Vice President, Investor Relations. We'll begin our call today with the review of our second quarter performance, followed by our outlook for the second half and fiscal year. Afterwards, we'll be happy to respond to any questions you may have.
As noted in today's press release, we are pleased with the above-plan sales and earnings growth for the second quarter. Earnings per share for the 13 weeks ended August 4, 2018, were $1.04, up from $0.82 for the 13 weeks ended July 29, 2017.
Net earnings were $389 million, up from $317 million in the prior year. The second quarter earnings results, including $0.18 first year benefit from tax reform legislation. Total sales for the second quarter increased 9% to $3.7 billion. Comparable store sales for the 13 weeks ended August 4, 2018, rose 5% over the 13-week period ended August 5, 2017. This growth was on top of a same-store sales gain of 4% for the 13 weeks ended July 29, 2017.
For the second quarter, we saw broad-based strength across merchandise categories and geographic markets. So better-than-expected operating margin of 13.8% was down from last year as higher merchandise gross margins and leverage on occupancy and buying costs were more than offset by a combination of unfavorable timing of packaway-related expenses, higher freight costs and this year's wage investments.
For the first 6 months of fiscal 2018, earnings per share were $2.15, up from $1.64 last year. Net earnings were $808 million, up from $638 million in first half of 2017. The year-to-date earnings results included $0.35 first year benefit from tax reform legislation.
Sales year-to-date rose 9% to $7.3 billion, with comparable store sales up 4% versus a 4% gain for the 26 weeks ended July 29, 2017. As we ended the second quarter, total consolidated inventories were up 6% over the prior year. Average in-store inventories were up 4% due in part to the 53rd-week calendar shift, while packaway, as a percentage of total inventories, was 44% compared to 46% last year. Dd's DISCOUNTS also posted another quarter of strong sales growth, leading to solid growth in operating profits year-to-date.
Turning to our store expansion program remain on schedule with the opening of 22 new Ross and 8 dd's DISCOUNTS locations in the second quarter. We also continue to project adding a total of approximately 100 locations in 2018, comprised of 75 Ross and 25 dd's DISCOUNTS. As usual, these numbers do not reflect our plans to close or relocate about 10 older stores.
In addition, as noted in today's press release, we are raising our long-term projected store potential to 3,000 locations, up from the previous target of 2,500. This is based on our research that indicates we can further increase penetration in both existing and new markets. And as a result of a number of factors that include increases in population densities and new enlarged trade areas from suburban growth.
As a result, we now believe that Ross Dress for Less can grow to about 2,400 locations across the country, up from our prior target of 2,000, and that dd's DISCOUNTS can ultimately become a chain of about 600 stores versus our previous projection of 500 units. This higher store potential provides us with considerable long-term growth opportunities.
Now Michael Hartshorn will provide further color on our second quarter results and details on our second-half guidance.