Excel 2010 - sort unlocked cells on a protected sheet

I have a worksheet in Excel 2010 that is protected; however, I have various cells that are unlocked so data can be entered.  Currently the data cannot be sorted.  I unlocked the sheet and then protected it again but this time enabled "Select unlocked cells" and "Sort".  The end user can now select the range of cells to sort (not including the headings since these cells are protected); however, the following message appears: "Excel found data next to your selection, but you do not have sufficient permissions to change those cells.  do you wish to continue with the current selection?"  If I click "yes" to continue it appears to sort ok.

I have two questions, (1) why am I receiving the permissions message since the range of cells I am highlighting are not "protected" and (2) I assume the sorting is using the first cell I am selecting to sort on since I have the headings protected - would I have to unlock the headings on my sheet so the user can select how he would like the data sorted?

Any help is appreciated.  Thank you.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Roy CoxGroup Finance ManagerCommented:
Are there protected columns next to the unprotected column?
ProfessorJimJamMicrosoft Excel ExpertCommented:
Please read my answers to the question here http://www.experts-exchange.com/Q_28679874.html#a40796675

Though the OP accepted someone else solution but my answers are similar to your question
mmj1Author Commented:
Yes - some of the cells above the unlocked cells are protected:  i.e.,  Column A for example - Cells A1 through A3 are locked cells (headings) - cells A4 through A10 are "unlocked"
Build an E-Commerce Site with Angular 5

Learn how to build an E-Commerce site with Angular 5, a JavaScript framework used by developers to build web, desktop, and mobile applications.

Roy CoxGroup Finance ManagerCommented:
The warning message is to alert the user that adjacent cells are protected. It is just a warning and clicking yes will allow the sort to run on the selected cells, the adjacent column will also sort. This warning can be suppressed if using code.

The locked cells above cannot be selected so will not be included whilst the sheet is protected.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mmj1Author Commented:
Thank you both for your input.  It is greatly appreciated.
Roy CoxGroup Finance ManagerCommented:
Glad we could help
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.