Have a Tax Question? Ask a Tax Expert
You can only have on primary residence.
however in the special case of divorced individuals, as you can still take the capital gains exclusion as you have outlined it.
YOu can not take another capital gains exlusion for two years after you sell the one your wife is occupying.