The 30-share index opened higher and moved in a 145-point range before ending at 20,149.85, a gain of 21.44 points or 0.11 per cent, climbing for the third straight day. The Sensex added 191.38 points this week.
The broader Nifty index on the National Stock Exchange erased all its gains and ended lower by 8.85 points, or 0.15 per cent, at 6,029.20. The SX40 index on the MCX-SX added 2.54 points.
Tata Consultancy Services was the top gainer on the Sensex, climbing 4.92 per cent after it posted a better-than-expected 15.5 per cent increase in consolidated net profit for the first quarter.
As a result, Infosys and Wipro also moved up. The BSE-IT index, which rose 2.81 per cent, was the top gainer among sectoral indices.
The gainers included auto stocks led by Tata Motors and Reliance Industries, ahead of its results. The rise in the Sensex was capped by declines in ICICI Bank, HDFC, Sun Pharma, BHEL, L&T, HDFC Bank, Sterlite Ind, NTPC, Jindal Steel and Tata Steel.