There are a few ways to freeze rows and columns at the same time in Excel. One way is to select the cells you want to freeze and then go to the View tab and click on the Freeze Panes button. From there, you can select the Freeze Panes option you want. Another way is to use the keyboard shortcut Ctrl + 1. This will open the Format Cells dialog box. From there, you can select the Freeze Panes option.