Nifty 50 ends at 23,414.30, up 0.29%, while Sensex gains 0.76% to close at 74,858.99