+ Reply to Thread
Results 1 to 5 of 5

F4 function that locks the cells issue

  1. #1
    Registered User
    Join Date
    04-09-2015
    Location
    derby england
    MS-Off Ver
    2007
    Posts
    33

    F4 function that locks the cells issue

    Hello
    I require a bit of help with the F4 function that locks the cells.
    As on the example spread sheet

    I have filled in the data on G11 with the cell E11 locked value.

    When I copy the cell G11 across along row 11, the cells populate fine with the function and all is well

    Now with G12 (all the way to G400) , is there a easier way of getting the cells locked (like =F12-$E$12 and =F13-$E$13) as i am having to lock the value manually

    Thank you
    Veer
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: F4 function that locks the cells issue

    G11 should be
    =F11-$E11

    When you use F4, you can continue pressing it repeatedly, and it will cycle through all possible combinations of the $
    A1 - $A$1 - A$1 - $A1 - A1 - $A$1 - A$1 - $A1 - A1 etc...

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: F4 function that locks the cells issue

    Also read this...

    Relative And Absolute References In Formulas

    Excel accepts cell references in what are called absolute and relative ranges. Absolute ranges have a $ character before the column portion of the reference and/or the row portion of the reference. Relative ranges do not use the $ character. The $ character indicates to Excel that it should not increment the column and/or row reference as you fill a range with a formula or as you copy a range. For example A1 is a relative range, while $A$1 is an absolute range. If you enter =A1 in a cell and then fill that cell down a column, the '1' in the reference will increment in each row. Thus, the formula in row 50 would be =A50. However, if you enter =$A$1 in a cell and fill down, the range reference will remain $A$1 -- it will not increment as you fill or copy down a column.

    There are three absolute styles:

    Reference Style Meaning
    $A$1 Both the column and row reference are fixed. Neither will be incremented or changed during a copy or fill operation.
    $A1 Only the column reference is fixed. It will not change during a fill or copy, but the row will change.
    A$1 Only the row reference is fixed. It will not change during a fill or copy, but the column will change.

    If you select all or part of a formula in the formula, you can press F4 to cycle range reference between the 4 styles (1 relative and 3 absolute).

    Even with an absolute referencing style, Excel will still change row and column references when you insert a row or column. To have a truly absolute cell reference that will not change under any circumstances, use the INDIRECT function. For example =INDIRECT("A1") will always refer to cell A1, regardless of any changes made to the worksheet. This works because Excel does not interpret the string "A1" as an address. Instead, it treats it as plain text and therefore does not change it.

    A common use of mixing absolute and relative range specifications is to create a running total of a column of number. For example, if you have data in cells A1:A10, the formula =SUM(A$1:A1) in cell B1 and filled down to cell B10 will return the running total for the numbers in column A.

    Source:-

    http://www.cpearson.com/excel/relative.aspx


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    04-09-2015
    Location
    derby england
    MS-Off Ver
    2007
    Posts
    33

    Re: F4 function that locks the cells issue

    Thank you very much for your help
    all is clear now
    thanks
    Veer

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: F4 function that locks the cells issue

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Pasting into unlocked cells locks the cells
    By excel2007use in forum Excel General
    Replies: 0
    Last Post: 03-18-2015, 02:08 PM
  2. cut and paste locks cells
    By lima in forum Excel General
    Replies: 0
    Last Post: 03-01-2011, 05:48 PM
  3. [SOLVED] Programmatically pasting a Function locks macro
    By diglas1 via OfficeKB.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-16-2006, 08:10 PM
  4. [SOLVED] Pasting from Word locks cells
    By Andy in forum Excel General
    Replies: 1
    Last Post: 10-29-2005, 01:08 AM
  5. Check Box that Locks all cells on it's column
    By JasonMiller in forum Excel General
    Replies: 1
    Last Post: 07-01-2005, 02:05 PM

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