Here is how to solve
Excel file getting stuck in locked for editing
Connect to the file server with the action menu >> connect to another computerexpand system tools >> shared files then select open files
look for the locked file and right click on it and select "Close Open File"
Or.
1.Open Computer management
2.Open Shared Folder
3.Open File
4.Close File that stucking for Edit
Please see picture for reference