Due to the battery fire issues (google that) the only correct answer is to get Dell batteries made for the model in question.
But there are other possible fixes. Is the Dell BIOS current? I don't tell folk which version most of the time. You check at dell.com using your service tag.
-> As I read your post a second time there's another problem. If you swap batteries the battery calibration might have to be done. This would be a pain and another reason why I don't suggest that.
I have a dell inspiron 15r 5521, Its showing system cannot identify battery and cannot be charged press f1 to continue and i just replaced with friends battery which is working and error goes off. My , present battery is 11.1V 65Wh, MR90Y, can i replace it with 14.8 Wh 40Wh, XCMRD? At least for some days? Or will it sh0rt circuit my laptop? Please let me know.