+ Reply to Thread
Results 1 to 9 of 9

Is it possible to prevent updation of formula based cell ?

  1. #1
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Is it possible to prevent updation of formula based cell ?

    Hello ExcelForum experts,

    I asked the same question before but didn't get any reply. I have lot of respect for the excel gurus here in the forum and had very good experience in the past. But this time I am really struggling to get an answer to my query. Anyways I am writing it again in the hope that this time I will find the answer.

    Actually in my worksheet I calculate the values in a column based on some other cell values. The problem is these referenced cell values may be updated in future dates and if it happens, The values of whole column changed because formula in the column is referencing these cells. I have a date column also.
    So I want that if the values of the referenced cells are updated say on 01/09/2013 (dd/mm/yyyy), the values in the column before 01/09/2013 should remain unchanged. Is there any way to achieve this?

    I am also attaching an example sheet in which I have made it clear. Plz help me. I need it to be done.

    Thanks in advance.
    Attached Files Attached Files

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

    Re: Is it possible to prevent updation of formula based cell ?

    Just convert the formula cells as values and try the below code...

    Do right click on the sheet tab and select view code and paste the below code. This code will update the Sum of data in Column-B whenever any change happens in F2 cell based on the date check.

    Please Login or Register  to view this content.


    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

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Is it possible to prevent updation of formula based cell ?

    Thanks for your reply.

    I followed what you said but its not working. Probably I didn't explain well about the requirement.

    Actually the updation date in Cell A2 is changed when there is any change in values in Cells C2,D2,E2 and F2. If A2 is changed to 31/08/2013 and the values in C2,D2,E2 and F2 are changed on the same date, The values in column B should change those belong to 31/08/2013 and later until updation date and the values in CDEF(2) are not changed again in the future. All the values in column B before 31/08/2013 should remain unchanged.

    I am attaching the sheet again after applying the code you suggested. In the last sample sheet I forgot to mention the updation date in cell A2 which is a key factor.

    Thanks for finding some time to help me.

    Waiting for your reply.

    Thanks
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,599

    Re: Is it possible to prevent updation of formula based cell ?

    Pl see attached file.
    Attached Files Attached Files

  5. #5
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Is it possible to prevent updation of formula based cell ?

    Quote Originally Posted by kvsrinivasamurthy View Post
    Pl see attached file.

    Thanks kvsrinivasamurthy ! It worked perfectly.

    But I have one more query. What if the formula in column B is different than just summing the values in C2,D2,E2 and F2 ?

    What changes I am supposed to make in the code then?

    Please find the attachment.

    Thanks for your time and support. Waiting for your reply.
    Attached Files Attached Files
    Last edited by sktneer; 08-29-2013 at 04:48 AM.

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,599

    Re: Is it possible to prevent updation of formula based cell ?

    In the below code The function is Sum(Range("C2:F2")). This is to be changed.

    Please Login or Register  to view this content.

    To make easy I have put the formula in J2 and code is changed so that it puts the value of J2.See the file.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 08-29-2013 at 05:56 AM.

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

    Re: Is it possible to prevent updation of formula based cell ?

    Quote Originally Posted by sktneer View Post
    Actually the updation date in Cell A2 is changed when there is any change in values in Cells C2,D2,E2 and F2. If A2 is changed
    Have you read this???

    Quote Originally Posted by :) Sixthsense :) View Post
    Just convert the formula cells as values and try the below code...

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Is it possible to prevent updation of formula based cell ?

    Quote Originally Posted by kvsrinivasamurthy View Post
    In the below code The function is Sum(Range("C2:F2")). This is to be changed.

    Please Login or Register  to view this content.

    To make easy I have put the formula in J2 and code is changed so that it puts the value of J2.See the file.

    Perfect. Thanks indeed. * Added to your reputation. Thanks once again.

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,599

    Re: Is it possible to prevent updation of formula based cell ?

    Welcome for the compliments.

+ 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. Replies: 3
    Last Post: 08-28-2013, 09:26 AM
  2. Automatice Updation based on one value
    By Bharatdubole in forum Excel General
    Replies: 5
    Last Post: 11-26-2012, 04:57 AM
  3. Formula updation to various cells.
    By judygodchild218 in forum Excel General
    Replies: 3
    Last Post: 04-04-2008, 07:59 AM
  4. [SOLVED] Updation:How can a formula in a cell automatically update when inserting a.
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 AM
  5. Prevent entry based on another cell value
    By Melissa in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2005, 12:06 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