Investors & landlords

will I be able to apply the 250,000 IRS sales exclusion to the home or to only half of the home or the portion that was not rented?