You can lock cells in Excel by heading into the program's "Protection" tab. There, you can set a password, and protect your data.
To password protect a folder in Windows 10, you'll need to open the folder's "Properties" menu.