If the machine is off, it should charge. If not it's a hardware issue and estimates are needed.

Also, Dells have a system that may not allow third party chargers and batteries. And the third wire on the charger can break and cause such pain.

I have rarely found this to be a software issue, but just in case, be sure the latest BIOS from Dell is installed.