1. Access the following link Control Panel > User Accounts.
  2. Select the Make a change to my account option in your computer settings.
  3. Access the Access Work or School option.
  4. Select the desired account and select the Disconnect option.

After this procedure, access excel again and it worked perfectly.