The markets continued to consolidate further and ended flat on Wednesday. The BSE Sensex ended at 38,614.79, up 86.47 points or 0.22%. The 50-share index Nifty was at 11,408.40, up 23.05 points or 0.20%.