To add or remove cell borders in Excel, select the cell(s) you want to format, go to the Home ribbon, and click the Border button.