+ Reply to Thread
Results 1 to 5 of 5

Autofill Formula Across Locked Cells

  1. #1
    Registered User
    Join Date
    05-21-2012
    Location
    Boulder Junction, WI
    MS-Off Ver
    Excel 2007
    Posts
    3

    Autofill Formula Across Locked Cells

    I am constructing a document which displays the averages of a number of separate workbook all with identical formatting. A sample of the formatting is as follows:

    Percent Baking Supplies 15.0
    Percent Total Weight

    Wheat Flour 25 1 3/4
    White Flour 25 1 3/4

    There are hundreds of these boxes. While I've constructed a formula to do the work, I would like to be able to quickly autofill the whole sheet while keeping the labels intact, and so the above doesn't turn out looking like:

    #DIV/0! 15 #DIV/0!
    #DIV/0! #DIV/0! #DIV/0!
    #DIV/0! #DIV/0! #DIV/0!
    #DIV/0! 27 2
    #DIV/0! 25 1

    When I lock all the cells with labels, Excell 2007 won't let me drag the autofill box over the locked cells, meaning that either way right now I have to input the new formula by row and and drag small sections at a time. Any advice?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,529

    Re: Autofill Formula Across Locked Cells

    Locking cells is usually to prevent people from inadvertently corrupting the data/formulae, not to prevent the author from maintaining it. Locked cells only have an effect if the worksheet is protected. So, unprotected the sheet, make your changes and protect the sheet again.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-21-2012
    Location
    Boulder Junction, WI
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Autofill Formula Across Locked Cells

    Thanks for the response. Unfortunately, I want to make sure that the labels stay in place. If I drag the formula over the entire table, it will eliminate all the labels. Is there a way to autofill an entire table without disrupting those labels?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,529

    Re: Autofill Formula Across Locked Cells

    I'm not sure what you mean by "labels".

    Please post a sample workbook.

    Regards, TMS

  5. #5
    Registered User
    Join Date
    05-21-2012
    Location
    Boulder Junction, WI
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Autofill Formula Across Locked Cells

    Here is the sample. Basically, I want to input a new formula and drag it into all other blanks with numbers in them. However, I want all the labels (any cell with text) to remain the same. All the blanks also need to remain blank. Is there a quick way to do this?
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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