Indian equity indices ended with marginal gains in the rangebound session on July 16. At close, the Sensex was up 63.57 points or 0.08 percent at 82,634.48, and the Nifty was up 16.25 points or 0.06 percent at 25,212.05. About 2234 shares advanced, 1658 shares declined, and 150 shares unchanged. BSE Midcap and smallcap indices ended with marginal gains.