Markets consolidated through the week amid mixed global cues, with sector rotation seen between IT and banking stocks.