Get your taxes done using TurboTax

you should look up the rules in the IRS Pub for selling your home.

You can prorate the ineligible amount even if your weren't there for 2 years,

if you were forced out for unusual circumstances. 

I think this qualifies.