Open the worksheet in Excel
Go to the Insert tab
Click Header & Footer
Click in the header or footer area where you want the page number
Go to Header & Footer Elements
Click Page Number
Add a space or separator if needed
Add Total Number of Pages if you want page count
Click outside the header or footer area
Use Page Layout view or Print Preview to check the page numbers
Adjust margins or page setup if needed
