It depends on when the sale takes place. If you sell so that you will have used the home for at least two years within the five years before the sale, you will be able to take the exclusion. If it takes a long time to sell and you are no longer using the New York home as your residence, you may be out of luck.
Items, such as interest, state and local income and sales taxes, charitable contributions, and medical deductions, claimed on Schedule A of Form 1040. Itemized deductions are subtracted from adjusted gross income to arrive at taxable income. The amount of itemized deductions is also subject to a reduction when adjusted gross income exceeds certain limits.