The Nifty 50 closed at 24,175, up 84 points or 0.35 per cent, while the Sensex settled at 77,264, gaining 0.43 per cent