Bought home in 03, sold in 17. Didn't occupy from 10/15-7/17. For 15 & 16 claimed expense never inc on sch E. It was NEVER rented. Does the the main home sale excl apply

The home was never rented to anyone nor have I ever claimed any rent for the property. The only thing that was ever claimed on schedule e was expense. 

Also all expenses from last year were reflected as passive loss which carried over to the 2017 sch e as the property has been disposed of.