The stock was up 5% at 1026 GMT on Wednesday, paring 2020 losses to 55%, as investors took comfort the half year loss was not as bad as feared and from the initial success of a partnership with Ocado which has given M&S's food business an online presence for the first time.

"Looking at H1 cold, it looks like a car crash but relative to expectations the print was OK," said analysts at Peel Hunt.

Marks & Spencer (M&S) was struggling to reinvent itself after decades of failed attempts before the pandemic hit.

In May, it said the crisis would indelibly change its business and it would accelerate the latest turnaround plan, delivering three years of change in one. In August, M&S cut 7,000 jobs.

M&S made a pretax loss before one-off items of 17.4 million pounds ($22.6 million) in the 26 weeks to Sept. 26 - its first loss since joining the stock market in 1926.

The outcome was ahead of analysts' average forecast of a 59 million pound loss. M&S made a profit of 176 million pounds in the same period last year.

Clothing and homeware revenue slumped 40.8%, damaged by a three-month coronavirus lockdown in the spring.

All clothing retailers have been hurt by the crisis. On Tuesday, Primark reported a 63% fall in annual profit and Next last week forecast a 50% decline.

M&S's first-half food sales rose 2.7% on a like-for-like basis, with weak performances from stores in city centres and transport hubs because of the government's work-from-home directive offset by a better showing from suburban stores.

CEO Steve Rowe said the September launch of the Ocado venture had gone "fantastically", with customer reaction ahead of expectations.

And despite the loss he struck a confident tone, telling reporters: "We're building an M&S which is fitter, faster and more digital and is ready to emerge as a stronger, renewed business."

In the first four weeks of M&S's second half, food revenue was up 3%, clothing and homeware was down 21.5% and international revenue was up 7.4%.

But M&S cautioned that England's new four-week lockdown, beginning Thursday, would hit clothing and homeware sales and profit.

($1 = 0.7705 pounds)

(Reporting by James Davey; Editing by David Goodman and Mark Potter)

By James Davey