Remove extra spaces in Excel with Trim October 3, 2016 In Excel, remove extra spaces before and after your data with the trim function. For more ways to make Excel work for you, take a training course from AdvantEdge Training & Consulting!