+ Reply to Thread
Results 1 to 17 of 17

Locking cells in columns but allow copying and adding rows

  1. #1
    Registered User
    Join Date
    06-07-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    50

    Locking cells in columns but allow copying and adding rows

    I'm having real problems with locked columns in a worksheet which have formulas in them which are constantly getting typed over accidentally by other users but still require them to be able to copy and paste a row with these locked columns in them. Specifically rows M, N, O, P.

    I have the other columns unlocked without issue and these rows above locked. Fine. But what I need to allow is for someone to say, copy all of row 8 and then insert this at the bottom of my sheet with all the formulas still there and locked, but other columns be editable. It keeps coming up that the cell is protected and therefor read only which makes sense.

    I've selected allow adding, deleting rows in the Protect sheet window but it still wont allow me to do this because of the locked columns. Anyone help?

  2. #2
    Registered User
    Join Date
    06-07-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Locking cells in columns but allow copying and adding rows

    Nobody have any ideas?

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Locking cells in columns but allow copying and adding rows

    Hi

    Try putting your formulas of these columns, in Custom Validation rules. Thi will allow you to copy but soes not allows to anyone to change the formulas.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    06-07-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Locking cells in columns but allow copying and adding rows

    Can you give me a bit of guidance on how to do do the formulas in Custom Validation?

  5. #5
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Locking cells in columns but allow copying and adding rows

    Yes...Sure...

    Data>>DAta Valdation>>Custom.

    See the example. See the formula in M2. Try to type something in M2.Then try to copy it..

    See the results.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-07-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Locking cells in columns but allow copying and adding rows

    Do need to copy the formula I have already entered into the Data Validation>> Custom box when it asks for a forumla?

  7. #7
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Locking cells in columns but allow copying and adding rows

    I don't understand what you mean...

  8. #8
    Registered User
    Join Date
    06-07-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Locking cells in columns but allow copying and adding rows

    I've clicked on the cell, gone to data on the ribbon, click on validation, dropped down to custom and then what to I do from there? I tried pasting in the formula I used . Wrote a message to display when the cell which was click on and then copied this cell formula all down through the others in the column. This appears to be working but then how do I now lock the cells so that they can't be overwritten? and the moment they are still editable. The only way I know how to do this is to protect the sheet again which will surely still not let any other users copy and insert rows which is back to my original problem.

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Locking cells in columns but allow copying and adding rows

    Didn't my photos helped you?

    ... gone to data on the ribbon, click on validation, dropped down to custom and then what to I do from there?
    Then you type or you copy your formula WITHOUT equal(=) sign.! I think this is the reason that does not works for you. See my photos again.

  10. #10
    Registered User
    Join Date
    06-07-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Locking cells in columns but allow copying and adding rows

    Ah, I did not notice this. I have change this but this still does not lock the cells. So do I then go protect the sheet from there?

  11. #11
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Locking cells in columns but allow copying and adding rows

    As my example works and as yours doen't, i can only suggest you to upload a small sample workbook of your real workbook, to test it..

  12. #12
    Registered User
    Join Date
    06-07-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Locking cells in columns but allow copying and adding rows

    Here is an example of the workbook I am using. I have used your data validation instructions in Column P only.

    Example Reg.xls

  13. #13
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Locking cells in columns but allow copying and adding rows

    The 3 cells that you have custom validation are locked! You can not type anything there. So i just drag down to row 400, it.

    Is it??
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    06-07-2011
    Location
    Glasgow, Scotland
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: Locking cells in columns but allow copying and adding rows

    Ok. When I was testing this I assumed the message would come up as soon as you attempted to type in the cell. I no realise that the message appears when you press return as it doesn't actually allow the cell to be changed.

    That's it sorted then! Excellent, thank you very much

  15. #15
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Locking cells in columns but allow copying and adding rows

    You are welcome.

    You have to know that you can also add a message for them that try to type something in there..

  16. #16
    Registered User
    Join Date
    05-11-2017
    Location
    Maryland
    MS-Off Ver
    2013
    Posts
    1

    Re: Locking cells in columns but allow copying and adding rows

    Just to reply so I can download the file.

  17. #17
    Registered User
    Join Date
    02-25-2020
    Location
    chile
    MS-Off Ver
    2016
    Posts
    1

    Re: Locking cells in columns but allow copying and adding rows

    Thanks !!! a lot!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1