Forum Discussion

Tom_M_1969's avatar
Tom_M_1969
Copper Contributor
Jan 14, 2022

Locking cells in Excel Online? Is it possible?

Microsoft's website claims that the online version of Excel has a feature that will allow you to lock certain cells so that they can't be accidentally overwritten, but it doesn't explain how to do it.

 

I've been searching for an answer for quite a while, but I can't find any specific info about how to do this. All the tutorials I've seen reference the desktop version of Excel only.

 

Can anyone shed some light on this? Thank you.

  • Tom_M_1969 

    You have to apply the protection in the desktop version (for Windows or Mac). If you then upload the workbook to the cloud and open it in Excel Online, the protection will still work.

     

    (Protecting is a two-step process:

    1. Unlock the cells that should be editable in the Protection tab of the Format Cells dialog.
    2. Protect the worksheet on the Review tab of the ribbon.)
      • NikolinoDE's avatar
        NikolinoDE
        Gold Contributor

        mrobinsorcon 

        A long road has been covered since Excel Online was first presented.

        What was not possible then is possible today.

        What is not possible today may be possible tomorrow :).

         

        When and if it will be possible, I can't tell you either.

        But innovations are always being integrated into Excel Online.

        Check out the Microsoft Excel Blog regularly, updates are constantly being presented there.

        Subscribe to the Excel Blog to get the latest product announcements and updates 🙂

  • Tom_M_1969 

    You have to apply the protection in the desktop version (for Windows or Mac). If you then upload the workbook to the cloud and open it in Excel Online, the protection will still work.

     

    (Protecting is a two-step process:

    1. Unlock the cells that should be editable in the Protection tab of the Format Cells dialog.
    2. Protect the worksheet on the Review tab of the ribbon.)
    • GreggDorman's avatar
      GreggDorman
      Copper Contributor

      Hey, I've set up some access premissions like this - opened and created in excel app, apply access rights to all cells but one section allowing user 1 access and not user 2.
      On this other section I've allowed user 2 rights to access. All works well in the excel app - however when this is opened through teams, it will always ask for the password to be given.
      Is there a way around this?

  • AJToomey's avatar
    AJToomey
    Copper Contributor

    Solved this one today.  All the other comments only partially solve our problem.  We had several protected sheets with specific cells locked, but there one sheet would not lock when Excel file open in Teams. Setting the protection was only part of the solution.  

    With Excel file open in Teams. Go to Review tab > Manage Protection > (enter password if password protected) > Protect Sheet (on) > Unlocked Ranges (none).

    The key was Unlocked Ranges.   
    Removing any ranges listed in the Unlocked Ranges section solved it.

    Hope this helps someone because it took ages to figure this one out.

  • GiovanniPrior's avatar
    GiovanniPrior
    Copper Contributor
    Even if a lot of time is passed, i've fuond the solution going into "Review" tab and then "Manage protection" (for me it's the last button on the right), from there i can unblock specific ranges when i apply the protection into the sheet.
  • Claire_McLo's avatar
    Claire_McLo
    Copper Contributor
    Whilst it's possible using Review>Manage Protection>Unlocked ranges, it isn't as straightforward as the desktop app. In the desktop, you can clear the protection lock for everything then just lock the individual cells, rows or columns that I want to (or vice versa). In Excel online, you have to add the ranges that you do want to be edited. If I just want one cell locked, eg E5, I'd have to add the ranges around it, eg A:D, F:??, 1:4 and 6:??.
  • mrnoelcaraballo's avatar
    mrnoelcaraballo
    Copper Contributor

    Tom_M_1969 at my work we now moved everything to onedrive and use the browser version of excel. Although the locked sheet is in place, on the desktop version when I pressed TAB excel took me to the next unlocked cell andkeystrokes. the locked cells. I did this intentionally as these unlocked input cells pulled info from another sheet. 

     

    In the browser locked version the TAB key still navigates to the adjacent locked cell and I have to press TAB or ARROW keys multiple times when I used to be able to do so with one keystroke. So what used to be a couple of dozen keystrokes in a work shift is more 150-200. That lacks efficency. I haven't found a way to fix this issue. 

  • lukkymike's avatar
    lukkymike
    Copper Contributor

    Tom_M_1969 

     

    Not sure when this was added, but I do see the option for it now in Excel Online. If you select a cell or a range of cells and click the "Review" Tab, there is a toolbar button for "Protection" that allows you to protect the sheet and then define which rages are allowed to be edited, as well as specify a sheet protection password to allow people with that password to edit protected parts of the sheet.

Resources