Startseite » Excel EN » How to Lock a Row in Excel – Freeze Rows on Windows, macOS & Ubuntu

How to Lock a Row in Excel – Freeze Rows on Windows, macOS & Ubuntu

If you’re working with large spreadsheets, it’s crucial to ask how to lock a row in Excel — typically the top row—so it stays visible while scrolling. Whether you use Windows, macOS, or Ubuntu, locking a row helps you keep track of headers and ensures smooth data navigation.

In Excel, locking a row is commonly known as freezing a row. It doesn’t protect the data but instead pins it to the screen, so it doesn’t scroll away.


✅ Why Lock a Row in Excel?

  • Keep header rows visible at all times
  • Simplify data analysis by tracking column titles
  • Prevent confusion when navigating large datasets
  • Improve usability for data entry or review

📌 How to Lock the Top Row in Excel

🔒 Method 1: Freeze Top Row via Ribbon

  1. Open your Excel spreadsheet
  2. Go to the View tab
  3. Click on Freeze Panes
  4. Select Freeze Top Row

🔁 This method works across Windows, macOS, and Ubuntu (LibreOffice/Excel via Wine).


💻 Method 2: Keyboard Shortcuts to Lock a Row

🪟 On Windows

  • Alt + W + F + R
    This sequence opens the View tab and freezes the top row.

If you want to freeze a specific row (not just the top), click the row below the one you want to lock and use:

  • Alt + W + F + F to open Freeze Panes

🍏 On macOS

  • Command + Shift + R (in newer Excel versions)
    Or:
  • Use the menu: View > Freeze Panes > Freeze Top Row

🐧 On Ubuntu (LibreOffice Calc)

  • Select the cell below the row you want to lock
  • Go to View > Freeze Cells > Freeze First Row

Shortcut may vary by desktop environment, but generally:

  • Use Alt + V + Z + R (LibreOffice shortcut)

📋 Quick Shortcut Recap Table

ActionWindows ShortcutmacOS ShortcutUbuntu/Linux (LibreOffice)
Freeze Top RowAlt + W + F + RCmd + Shift + R / MenuAlt + V + Z + R
Freeze Specific RowAlt + W + F + FUse menu optionsView > Freeze Cells
Unfreeze RowAlt + W + F + UCmd + Shift + U / MenuView > Freeze Cells > Off

🧠 Bonus Tip: Freeze Multiple Rows in Excel

If you need to lock multiple rows:

  1. Select the row below the last one you want to freeze.
  2. Go to View > Freeze Panes > Freeze Panes.
  3. That’s it! All rows above your selection are locked.

❓ FAQs – Locking Rows in Excel

Is locking a row the same as protecting it?
No. Locking (freezing) just keeps it visible. To protect content from editing, use the “Protect Sheet” feature.

Can I lock both rows and columns?
Yes. Select the cell below the row and to the right of the column you want locked, then choose Freeze Panes.

Does this work in Excel Online?
Yes! The Freeze Panes feature is available in the browser version, too.

Can I freeze rows in Google Sheets?
Absolutely! Go to View > Freeze and select the desired number of rows.


✅ Conclusion

Knowing how to lock a row in Excel boosts your productivity and makes navigating large datasets far easier. Whether you use Windows, macOS, or Ubuntu, freezing rows ensures your headers stay in sight, helping you manage your data more efficiently.

Complete List of Windows Keyboard Shortcuts

If you need help for Windows, you can find a whole list of all keyboard shortcuts here.

https://keyboard-shortcuts.org/

Advertisment