+ Reply to Thread
Results 1 to 6 of 6

Protect IF statement AND allow data entry

  1. #1
    Registered User
    Join Date
    07-05-2006
    Posts
    2

    Protect IF statement AND allow data entry

    Is there any way to setup a cell to allow data to be entered while not deleting a formula or conditional statement?

    I have a series of cells that are added and if it reaches 300, I want it to automatically populate the cell with the number 300...otherwise, the user can enter the number themselves without destroying the statement for use again the following week.

    Also, can I use a conditional statement to move an entire row of data? If a sum of numbers reaches 300 in the middle of my spreadsheet, can I have it automatically copy the values to the bottom of my sheet or better yet, another page and then clear the row for use again?

    Thanks for any help you can provide.

  2. #2
    Forum Contributor
    Join Date
    08-12-2020
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 16
    Posts
    241

    Re: Protect IF statement AND allow data entry

    Hi Stilton. This is how I have achieved this sort of situation. It may not be a total fix for you. I have a cell, W9, that contains a formula in it. In cell N9, I use data validation and use this setup: Under Allow: I select List, under Source: I put =W9, and on the Error Alert Tab I uncheck the Show error alert box. So now, I can type whatever I want in N9, and when I want to revert to the formula I use the dropdown on the data validation and select it.
    Good Luck.
    Squeaky.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Protect IF statement AND allow data entry

    1. A cell can contain either a formula OR data, it cannot contain n both

    2. formulas ONLY affect the cell they reside in, they cannot move/copy anything anywhere
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,963

    Re: Protect IF statement AND allow data entry

    This question was asked in 2006 - twice on the same day, actually! The OP has not been here since 07 July 2006.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Protect IF statement AND allow data entry

    LOL thx Ali, I did not look at the OP date

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,963

    Re: Protect IF statement AND allow data entry

    Squeaky had bumped it by responding.

+ 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