The BSE Sensex ended at 17,185, up 80 points and the Nifty ended at 5,216, up 23 points.
Earlier in the day, the benchmark index touched the day's low at 17,039 as gains in private bankers helped offset losses in index heavyweight Reliance Industries in addition to Tata Motors and SBI.
Asian shares remained lacklustre on Wednesday after Federal Reserve Chairman Ben Bernanke offered a gloomy view of the US economy, but hopes that the central bank is moving closer to more stimulus measures limited the day's losses.
Chinese shares underperformed the region, dragged down by property plays after data showing another year-on-year dip in home prices spurred profit-taking in one of this year's biggest outperformers in Asia.
The Hang Seng was down 1.1% and Nikkei slipped 0.3% while Shanghai Composite was marginally up by 0.4%. European shares edged up but the euro eased on Wednesday after testimony from US Federal Reserve Chairman Ben Bernanke that offered little guidance on whether the central bank was moving closer to new stimulus measures.
The CAC-40, DAX and FTSE-100 were trading with marginal gains.
On the sectoral front, BSE Metal, Capital Goods, Realty and Auto were the top gainers, up 1-2% each, while Oil & Gas, Healthcare and Consumer Durables were down marginally.
Among Sensex shares, Tata Motors was the most prominent loser, down 2% at Rs 222.
Tata Motors after turning ex-dividend today for dividend of Rs 4 per share for the year ended 31 March 2012.
The dividend shall be paid / dispatched on and after August 14, 2012.
Reliance Industries was down 0.5%. Reliance Industries and its British partner BP Plc have warned that eastern offshore KG-D6 gas fields will stop producing in 2015
Markets end flat amid volatile trade
It's a cloudy outlook for Mahindra & Mahindra
Markets end flat amid range bound trade
QUIZ: Can you identify these business leaders?
Re down 18 paise against dollar