2 years? I wish Dell would do that. You only get 1 year from them (no matter what warranty you might have otherwise), and they're designed to fail just outside of that.
And yes, be glad it didn't explode or catch fire.
Apple only has a 1 year warranty on their batteries as well. You can buy an extended warranty, but I think PR_GMR is covered because it's due to a known defect. I don't think many laptop manufacturers offer much more than a 1 year warranty on batteries.
And for the record, I own both an Apple and a Dell laptop. Both had batteries give up the ghost around 18-24 months, so I really don't think one is better than the other. Both were used extensively and I was happy they lasted as long as they did.