Go to View and select
Showing the ruler isn't currently possible in Excel for the web. You can, however, show or hide the ruler in the Excel desktop app.
-
To open the desktop app, at the top of the ribbon, select Editing > Open in Desktop App.
Don't have the Excel desktop app? Try or buy Microsoft 365.