Can I take an exemption on selling my house in 2016. If I buy another house can I still take an exemption if I live in it for required time.

It will be about another year or so before I buy another house to reside in.