+ Reply to Thread
Results 1 to 5 of 5

Locking a Formula into a Cell

  1. #1
    Registered User
    Join Date
    06-06-2014
    Posts
    12

    Locking a Formula into a Cell

    So I currently have a range of cells that have formulas within them. The formulas are basic if statements: G6=IF(F6="n","N/A",""). Note: F6 will only be either Y or N. So in a sense, if the user chooses N in F6, then G6=N/A and otherwise, G6 is not populated with any text. However, based on the application of the worksheet, if F6 is "y", G6 will be changed to a value that the user will input. How can i make it so that if the user is messing around in those cells, the formula in G6 will not be deleted. Can it be "put into the background"?

  2. #2
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Locking a Formula into a Cell

    1. Enter the formula in G6
    2. Lock G6
    3. Protect the worksheet.
    Gary's Student

  3. #3
    Valued Forum Contributor adyteo's Avatar
    Join Date
    01-10-2013
    Location
    Calgary
    MS-Off Ver
    Excel 2010
    Posts
    540

    Re: Locking a Formula into a Cell

    un-lock (format cells --> protection tab) all cells then lock G6 and then protect the sheet
    Click on the star if you think I helped you

  4. #4
    Registered User
    Join Date
    06-06-2014
    Posts
    12

    Re: Locking a Formula into a Cell

    Right, but If the user inputs "Y", G6 should be able to be changed to a numerical value. For instance, if the user chooses N for F6, the cell G6 should read "N/A" and if the user chooses Y for cell F6, no value should automatically be populated into G6. Rather, if Y is chosen, the user should be able to change the cell value to a numerical value of their choice. However, lets say they choose Y, change G6 to 3, delete the 3, and then change F6 back to N - I want the value of G6 to then read N/A or in otherwords, the formula remain unchanged

  5. #5
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: Locking a Formula into a Cell

    Then I would use a third cell, say A1:

    =IF(F6="N","N/A",IF(A1="","",A1))


    1. If F6 is N, then G6 reads N/A
    2. If F6 is Y, then G6 can read the value in A1

+ 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. Locking a Cell in a Formula
    By NFJim in forum Excel General
    Replies: 1
    Last Post: 02-01-2010, 04:08 PM
  2. Locking a formula reference to a cell.
    By celtxx in forum Excel General
    Replies: 8
    Last Post: 07-02-2008, 09:36 AM
  3. [SOLVED] locking formula in cells in without locking whole sheet
    By SuziQ in forum Excel General
    Replies: 1
    Last Post: 07-21-2006, 11:05 AM
  4. [SOLVED] locking formula cell references
    By Superchikn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-16-2006, 03:35 PM
  5. [SOLVED] Locking A Formula In A Cell
    By Altstatten in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-19-2005, 04:35 PM

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