Indian markets ended largely flat in a rangebound session. Eicher Motors, Apollo Hospitals, SBI and SJVN rallied on strong earnings, and BHEL declined after a government stake sale announcement.