After a late sell-off, the Nifty ended around 17,500 mark as the Sensex fell over 300 points on expiry day.