In Excel there are gridlines and gridlines. You can display them on the screen as you work or on the printouts or both or neither.
To display or hide gridlines as you work, choose Tools, Options, View tab and enable or disable Gridlines.
For printing, choose File, Page Setup, Sheet tab and enable or disable Gridlines for printing…
Now you know.