+ Reply to Thread
Results 1 to 8 of 8

Prevent cell update if valued

Hybrid View

WDGOR Prevent cell update if valued 07-15-2014, 12:36 AM
6StringJazzer Re: Prevent cell update if... 07-15-2014, 11:07 AM
WDGOR Re: Prevent cell update if... 07-15-2014, 12:54 PM
6StringJazzer Re: Prevent cell update if... 07-15-2014, 02:24 PM
WDGOR Re: Prevent cell update if... 07-15-2014, 06:20 PM
6StringJazzer Re: Prevent cell update if... 07-15-2014, 06:44 PM
WDGOR Re: Prevent cell update if... 07-15-2014, 07:52 PM
6StringJazzer Re: Prevent cell update if... 07-16-2014, 12:01 AM
  1. #1
    Registered User
    Join Date
    01-17-2009
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    9

    Prevent cell update if valued

    I have a sheet (Summary Sheet) that uses formulas to fill in values from an updateable data sheet (Pipeline). I am trying to prevent updating the values in the Summary Sheet if a value already exists. As an example, the formula below looks for the range of dates from 1/1/2014 to 12/31/2014 and returns a value. The Pipeline sheet is updated monthly. If a value is posted for that month (January in this example), even if it is zero, it should not change that January value when the Pipeline sheet is updated in February, i.e. even if the January value is changed in February on the Pipeline sheet, the original value on the Summary Sheet from January needs to be maintained since it was entered in January. There is a large range of cells that need to be checked and prevented from an update if it has already been run for that month.

    =IF($B4="RSD",(SUMIFS(Pipeline!$I$2:$I$5000,Pipeline!$AG$2:$AG$5000,"CVIS",Pipeline!$AF$2:$AF$5000,"0",Pipeline!$AL$2:$AL$5000,$A4,Pipeline!$F$2:$F$5000,">="&"1/1/2014",Pipeline!$F$2:$F$5000,"<="&"12/31/2014")),0)

    Thank you for any assistance. I anticipate that this will require VBA code and I am not proficient in that element.

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,779

    Re: Prevent cell update if valued

    Quote Originally Posted by WDGOR View Post
    ...the formula below looks for the range of dates from 1/1/2014 to 12/31/2014 and returns a value. The Pipeline sheet is updated monthly.
    I may not be understanding your question, but I don't see why you are looking for a range of dates for the whole year if you are trying to capture a figure for January.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    01-17-2009
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Prevent cell update if valued

    Sales wants to look at a rolling 12 months but once that is determined in any particular month, it needs to be maintained for that month even if they go in and make changes, i.e. we want to maintain the original estimate. Probably the simplest thing to do would be to prevent updates in the source but they want the flexibility to make changes anytime. I just need to see if there is a way that I can tell Excel that I already have a value in that month so don't update that cell. Does that help clarify it better?

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,779

    Re: Prevent cell update if valued

    Yes. There are a couple of ways to do this, and every way I can think of requires VBA. The first one that comes to mind is a macro that will allow you to double-click on a cell containing a formula, and turn it into a value.

    Another similar way would be to add a button so that when you click the button, the active cell is converted from a formula to a value.

    Attached is a sample file illustrating both methods. In each case, the action will be ignored if more than one cell is selected.

  5. #5
    Registered User
    Join Date
    01-17-2009
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Prevent cell update if valued

    Jeff,

    Thanks for the prompt response. I tried your solution and it works. My issue is that I don't want to change the underlying formula but just not update the value if there is already a value present for that month or any previous month that already has a value. I also have hundreds of cells where this condition would need to be applied. What I want may not be as "easy" to implement as I had anticipated.

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,779

    Re: Prevent cell update if valued

    It's not possible to freeze the result of a formula and retain the underlying formula.

  7. #7
    Registered User
    Join Date
    01-17-2009
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    9

    Re: Prevent cell update if valued

    Bummer - I was afraid of that. Thanks a lot for looking at the issue and the advice. Maybe Excel 2020 will do it.

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,779

    Re: Prevent cell update if valued

    Yes, I have heard that the "have your cake and eat it too" feature is planned for 2020

+ 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. [SOLVED] How to update multi-valued lookup field?
    By studiosa in forum Access Tables & Databases
    Replies: 2
    Last Post: 09-04-2013, 12:43 PM
  2. [SOLVED] Conditional Format for valued cell only
    By pra4ash in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-30-2013, 12:04 AM
  3. [SOLVED] Highest valued cell on another worksheet
    By sheldon8 in forum Excel General
    Replies: 2
    Last Post: 08-15-2012, 05:51 PM
  4. Replies: 3
    Last Post: 11-24-2011, 04:09 AM
  5. Prevent direct editing, but allow userform to update cell
    By JP Romano in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-07-2011, 05:09 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