In Microsoft Excel 2007 or later versions like Excel 2019, we want to protect few cells only in a worksheet, then how to do it?
Solution: There are two situations to lock cells in excel depending on these reasons.
Excel Vlookup formula – Guidebook

Bored of downloading text heavy / copy-pasted eBooks?
If Yes, you will enjoy this guidebook on ‘Excel Vlookup Formulas’ – VLOOKUP, HLOOKUP, MATCH & INDEX.
1. If You Want the Majority of Cells Locked
1. Select the cells that you want to remain unprotected. To select nonadjacent (non-contiguous) cells, hold down CTRL and click the cells that are to remain unprotected.

2. On Excel 2007 or later, make right click on any selected cell and select FORMAT-CELL, and then click ProtectionClick to clear the Locked check box and click OK.

3. In Excel 2007 or later, click the Review tab, and click Protect Type a password if you want one, and then click OK.

2. If You Want the Majority of Cells Unlocked
To leave the majority of the cells on the worksheet unlocked, follow these steps:
1. Select the entire worksheet by clicking the Select All button (the gray rectangle in the upper-left corner of the worksheet where the row 1 and column A headings meet), or by pressing CTRL+A.
15 Excel Data Cleaning Tricks Guidebook
Bored of downloading text heavy / copy-pasted eBooks? If Yes, you will enjoy this guidebook (43 pages)

2. On Excel 2007 or later, make right click on any selected cell and select FORMAT CELL, and then click Protection.Click to clear the Locked check box and click OK.

3. Select the cells that you want to protect. To select nonadjacent (non-contiguous) cells, hold down CTRL and click the cells that you want to protect.
Return to the Format Cells dialog box, and then click the Protection tab. Click to select the Locked check box, and then click OK.

4. In Excel 2007 or later, click the Review tab, and click Protect Sheet. Type a password, if you want one, and then click OK.

15 Pivot Tables Tricks for Pros
15 Pivot Table tricks to make your Excel data analysis smarter! 5,600+ downloads.
Most Popular Tricks are #3, #7 & #12