Hướng dẫn lock value in excel - khóa giá trị trong excel

Giả sử rằng sếp của bạn muốn bạn bảo vệ toàn bộ sổ làm việc, nhưng cũng muốn có thể thay đổi một vài ô sau khi bạn cho phép bảo vệ trên sổ làm việc. Trước & nbsp; bạn đã bật bảo vệ mật khẩu, bạn đã mở khóa một số ô trong sổ làm việc. Bây giờ sếp của bạn đã hoàn thành với sổ làm việc, bạn có thể khóa các ô này.

Thực hiện theo các bước này để khóa các ô trong bảng tính:

  1. Chọn các ô bạn muốn khóa.

  2. Trên tab Home, trong nhóm căn chỉnh, nhấp vào mũi tên nhỏ để mở cửa sổ bật lên các ô định dạng.Home tab, in the Alignment group, click the small arrow to open the Format Cells popup window.

  3. Trên tab Bảo vệ, chọn hộp kiểm bị khóa, sau đó bấm OK để đóng cửa sổ bật lên.Protection tab, select the Locked check box, and then click OK to close the popup.

    Lưu ý: & nbsp; Nếu bạn thử các bước này trên sổ làm việc hoặc bảng tính mà bạn chưa bảo vệ, bạn sẽ thấy các ô đã bị khóa. Điều này có nghĩa là các ô đã sẵn sàng để bị khóa khi bạn bảo vệ sổ làm việc hoặc bảng tính.If you try these steps on a workbook or worksheet you haven't protected, you'll see the cells are already locked. This means that the cells are ready to be locked when you protect the workbook or worksheet.

  4. Trên tab Đánh giá trong Ribbon, trong nhóm thay đổi, chọn bảo vệ tờ hoặc bảo vệ sổ làm việc, sau đó bảo vệ lại. Xem bảo vệ một bảng tính hoặc bảo vệ một sổ làm việc.Review tab in the ribbon, in the Changes group, select either Protect Sheet or Protect Workbook, and then reapply protection. See Protect a worksheet or Protect a workbook.

    Mẹo: & NBSP; Đó là một thông lệ tốt nhất để mở khóa bất kỳ ô nào mà bạn có thể muốn thay đổi trước khi bảo vệ bảng tính hoặc sổ làm việc, nhưng bạn cũng có thể mở khóa chúng sau khi bạn áp dụng bảo vệ. Để loại bỏ bảo vệ, chỉ cần xóa mật khẩu.It's a best practice to unlock any cells that you may want to change before you protect a worksheet or a workbook, but you can also unlock them after you apply protection. To remove protection, simply remove the password.

Ngoài việc bảo vệ sách bài tập và bảng tính, bạn cũng có thể bảo vệ các công thức.

Excel for the web can’t lock cells or specific areas of a worksheet.

If you want to lock cells or protect specific areas, click Open in Excel and lock cells to protect them or lock or unlock specific areas of a protected worksheet.Open in Excel and lock cells to protect them or lock or unlock specific areas of a protected worksheet.

Excel for Microsoft 365 for MacExcel 2021 for MacExcel 2019 for MacExcel 2016 for Mac More...Less Excel 2021 for Mac Excel 2019 for Mac Excel 2016 for Mac More...Less

To prevent a user from accidentally or deliberately changing, moving, or deleting important data, you can lock cells and protect them. Locking cells takes two steps: adding the Lock formatting to the cells, and then turning on protection of the sheet.Lock formatting to the cells, and then turning on protection of the sheet.

To lock cells

  1. Select the cells that you want to lock.

  2. On the Format menu, click Cells, or press + 1.Format menu, click Cells, or press

    + 1.

  3. Click the Protection tab, and then make sure that the Locked check box is selected.Protection tab, and then make sure that the Locked check box is selected.

    Note: By default, all cells have the Locked formatting unless you previously turned it off.By default, all cells have the Locked formatting unless you previously turned it off.

  4. If any cells should be unlocked, select them. Press + 1. Then click to clear the Locked check box so that it isn't selected.

    + 1. Then click to clear the Locked check box so that it isn't selected.

  5. On the Review tab, click Protect Sheet or Protect Workbook. Type a password for the sheet or workbook, and then retype the password under Verify.Review tab, click Protect Sheet or Protect Workbook. Type a password for the sheet or workbook, and then retype the password under Verify.

    Note: The password is optional. If you do not supply a password, any user can unprotect the sheet and change what was protected. If you do enter a password, make sure that you choose a password that is easy to remember, or write it down and keep it in a safe place. If you lose the password, you can't access the protected parts on the sheet.The password is optional. If you do not supply a password, any user can unprotect the sheet and change what was protected. If you do enter a password, make sure that you choose a password that is easy to remember, or write it down and keep it in a safe place. If you lose the password, you can't access the protected parts on the sheet.

  6. If you don't want people to select locked cells, click to clear the Select locked cells check box.Select locked cells check box.

  7. If you want people to be able to select and fill out unlocked cells, click to select Select unlocked cells. Select unlocked cells.

  8. Before you click OK to finish, you might want people to do other things to the locked cells, like select them or format them. If so, under Allow users of this sheet to, choose the elements that you want people to be able to select or change.OK to finish, you might want people to do other things to the locked cells, like select them or format them. If so, under Allow users of this sheet to, choose the elements that you want people to be able to select or change.

  9. Click OK.OK.

To unlock cells

  1. You may need to temporarily turn off protection so that you can unlock cells. On the Review tab, click Unprotect Sheet or Unprotect Workbook. Then type the password.Review tab, click Unprotect Sheet or Unprotect Workbook. Then type the password.

  2. Select the cells that you want to unlock.

  3. Press + 1. Then click to clear the Locked check box so that it is not selected.

    + 1. Then click to clear the Locked check box so that it is not selected.

  4. If there are other cells that still need to be locked, on the Review tab, click Protect Sheet or Protect Workbook. Then type a password for the sheet, and verify it by typing it again.Review tab, click Protect Sheet or Protect Workbook. Then type a password for the sheet, and verify it by typing it again.

Need more help?

Đối với những file Excel có các dữ liệu quan trọng, bạn sẽ cần đến việc đặt mật khẩu hoặc khóa vùng dữ liệu để hạn chế chỉnh sửa và tăng tính bảo mật. Hãy cùng tìm hiểu cách thực hiện trong bài viết sau nhé!

Ví dụ trong bài được thực hiện trên phiên bản Microsoft Excel 2016. Bạn có thể áp dụng tương tự trên các phiên bản Excel khác như: 2007, 2010, 2013, 2017 và Microsoft Excel 365.Microsoft Excel 2016. Bạn có thể áp dụng tương tự trên các phiên bản Excel khác như: 2007, 2010, 2013, 2017 và Microsoft Excel 365.

1Hướng dẫn đặt mật khẩu cho file ExcelHướng dẫn đặt mật khẩu cho file Excel

Cách 1: Dùng Protect Workbook

Bước 1: Bạn mở file Excel cần đặt mật khẩu và chọn File > Info > Protect Workbook > Encrypt with Password.: Bạn mở file Excel cần đặt mật khẩu và chọn File > Info > Protect Workbook > Encrypt with Password.

Bước 2: Bạn nhập mật khẩu khi hộp thoại Encrypt Document [mã hóa tài liệu] xuất hiện và nhấn OK.: Bạn nhập mật khẩu khi hộp thoại Encrypt Document [mã hóa tài liệu] xuất hiện và nhấn OK.

Bước 3: Tiếp theo tại hộp thoại Confirm Password [xác nhận mật khẩu] các bạn nhập lại mật khẩu vào ô phía dưới Reenter password và nhấn OK.: Tiếp theo tại hộp thoại Confirm Password [xác nhận mật khẩu] các bạn nhập lại mật khẩu vào ô phía dưới Reenter password và nhấn OK.

Sau khi thiết lập xong bạn sẽ thấy thay đổi: A password is required to open this workbook. Bạn lưu file để hoàn thành việc tạo mật khẩu.A password is required to open this workbook. Bạn lưu file để hoàn thành việc tạo mật khẩu.

Cách 2: Dùng Save As

Bước 1: Trên file Excel các bạn muốn đặt mật khẩu, các bạn chọn File > Save As > Browse hoặc chọn phím F12 để mở cửa sổ Save As.: Trên file Excel các bạn muốn đặt mật khẩu, các bạn chọn File > Save As > Browse hoặc chọn phím F12 để mở cửa sổ Save As.

Bước 2: Sau khi chọn vị trí lưu file và đặt tên file, bạn chọn Tools > General Options.: Sau khi chọn vị trí lưu file và đặt tên file, bạn chọn Tools > General Options.

Bước 3: Xuất hiện hộp thoại General Options, các bạn có thể tạo mật khẩu cho file Excel bằng cách:: Xuất hiện hộp thoại General Options, các bạn có thể tạo mật khẩu cho file Excel bằng cách:

  • Nhập mật khẩu vào ô Password to open nếu muốn tạo mật khẩu để mở file.Password to open nếu muốn tạo mật khẩu để mở file.
  • Nhập mật khẩu vào ô Password to modify nếu các bạn muốn tạo mật khẩu để sửa đổi file Excel.Password to modify nếu các bạn muốn tạo mật khẩu để sửa đổi file Excel.

Bạn có thể tạo một trong hai, hoặc cả hai mật khẩu đều được.

Xuất hiện hộp thoại Confirm Password – Reenter password to proceed các bạn nhập lại mật khẩu đã nhập trong ô Password to open và nhấn OK.Confirm Password – Reenter password to proceed các bạn nhập lại mật khẩu đã nhập trong ô Password to open và nhấn OK.

Xuất hiện hộp thoại Confirm Password – Reenter password to modify các bạn nhập lại mật khẩu đã nhập trong ô Password to modify và nhấn OK để xác nhận.Confirm Password – Reenter password to modify các bạn nhập lại mật khẩu đã nhập trong ô Password to modify và nhấn OK để xác nhận.

Sau đó các bạn nhấn chọn Save để lưu file.Save để lưu file.

Nếu các bạn đặt mật khẩu trong ô Password to modify, các bạn sẽ nhận được yêu cầu nhập mật khẩu như hình dưới. Nếu chỉ muốn đọc file mà không chỉnh sửa các bạn chọn Read Only, nếu muốn chỉnh sửa file các bạn cần nhập mật khẩu.Password to modify, các bạn sẽ nhận được yêu cầu nhập mật khẩu như hình dưới. Nếu chỉ muốn đọc file mà không chỉnh sửa các bạn chọn Read Only, nếu muốn chỉnh sửa file các bạn cần nhập mật khẩu.

2Hướng dẫn đổi mật khẩu và xóa mật khẩu file ExcelHướng dẫn đổi mật khẩu và xóa mật khẩu file Excel

Xóa mật khẩu file Excel

Để xóa mật khẩu đã đặt cho file Excel, các bạn mở file Excel lên và nhập mật khẩu để đăng nhập. Sau đó, bạn chọn File > Info > Protect Workbook > Encrypt with Password.File > Info > Protect Workbook > Encrypt with Password.

Trong hộp thoại Encrypt Document các bạn xóa các ký tự trong ô dưới Password và chọn OK.Encrypt Document các bạn xóa các ký tự trong ô dưới Passwordchọn OK.

Đổi mật khẩu file Excel

Sau khi đã thực hiện xóa mật khẩu file Excel, bạn thực hiện lại như mục 1 của bài viết để tạo mật khẩu mới cho Excel.

3Cách khóa vùng giá trị trong ExcelCách khóa vùng giá trị trong Excel

Khóa giá trị vùng dữ liệu sẽ giúp bạn hạn chế các sai sót như xóa nhầm, vô tình thay đổi giá trị khác hoặc khi bạn không muốn ai đó chỉnh sửa dữ liệu của mình.

Bước 1: Bạn chọn ô hoặc vùng dữ liệu mà bạn muốn khóa. Sau đó trên tab Home, bấm vào mũi tên nhỏ ở góc bên phải ở nhóm Alignment.: Bạn chọn ô hoặc vùng dữ liệu mà bạn muốn khóa. Sau đó trên tab Home, bấm vào mũi tên nhỏ ở góc bên phải ở nhóm Alignment.

Bước 2: Khi cửa sổ Format Cells hiện ra, bạn chọn tab Protection và tích chọn Locked, sau đó nhấn OK.: Khi cửa sổ Format Cells hiện ra, bạn chọn tab Protection và tích chọn Locked, sau đó nhấn OK.

Bước 3: Bạn chuyển qua tab Review và chọn Protect Sheet.: Bạn chuyển qua tab Review và chọn Protect Sheet.

Bước 4: Bạn đặt mật khẩu trong khung Password to unprotect sheet và tích chọn các chức năng khóa.: Bạn đặt mật khẩu trong khung Password to unprotect sheet và tích chọn các chức năng khóa.

Bạn nhập mật khẩu một lần nữa khi bảng thông báo mới hiện ra và nhấn OK để hoàn tất.OK để hoàn tất.

Bạn quên mật khẩu file Excel? Đừng lo, hãy xem thêm bài viết: Cách mở khóa file Excel khi quên mật khẩu.

Mời bạn tham khảo một số phần mềm Microsoft đang kinh doanh tại Điện máy XANH:

Xem thêm:

  • Cách dùng hàm AVERAGE để tính trung bình cộng đơn giản, dễ hiểu
  • Cách kết hợp hàm INDEX và MATCH trong Excel để dò nhiều điều kiện
  • Hàm VLOOKUP trong Excel: Cách dùng chi tiết, đơn giản nhất

Trên đây là bài viết chia sẻ cách đặt mật khẩu cho file Excel. Hy vọng những thông tin này đã giúp ích cho bạn trong việc bảo vệ dữ liệu cho file Excel của mình.

Bài Viết Liên Quan

Chủ Đề