How do you create borders in the Excel sheet?

Borders are part of formatting of cells. Press Ctrl - 1 and then pick Borders. You then have a wide variety for setting borders to the selected cells.