+ Reply to Thread
Results 1 to 8 of 8

How to render a formula inactive

  1. #1
    Registered User
    Join Date
    11-25-2019
    Location
    Tampa,Florida
    MS-Off Ver
    MS 10
    Posts
    5

    How to render a formula inactive

    Hi Everyone. I hope someone can help - I'm relatively new to Excel VBA macros. So here is my dilemma. I created a spreadsheet with certain conditions ( see screenshot -image attached). I created a formula ( networkdays) under Days Pending that compares the date entered to the current date. So it will increment 1 day, each day. What I want to do is to keep that from incrementing and just freeze the current value when the status changes to "Closed" under Status Column because when it is closed, it is no longer pending although I still want to show how many days it took to complete.

    Hope that made sense and thanks in advance to anyone who can help!

    Freeze formula.jpg

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

    Re: How to render a formula inactive

    Welcome to the Forum James T777!

    One way to do this is with a macro that runs when you change the status to Closed, and it will change the formula for Days Pending to the actual value, so it won't change.

    The way that I do this is to have another column next to status where you record the date that the status changed. Then you can do everything with formulas and don't need VBA.

    I can help with either solution but you'll need to attach your file. I can't update a picture. The paper clip icon does not work for attachments. To attach a file, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    11-25-2019
    Location
    Tampa,Florida
    MS-Off Ver
    MS 10
    Posts
    5

    Re: How to render a formula inactive

    Thanks 6String. Attached is the spreadsheet. I had to delete a few things since there is sensitive material pertaining to my workplace but its not need for you to evaluate what I was asking.

    BTW: I would prefer if you could show me a solution via VBA code since I'm trying to limit the number of columns on the spreadsheet.

    Thanks Again!
    Attached Files Attached Files
    Last edited by James T777; 11-26-2019 at 10:30 AM.

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

    Re: How to render a formula inactive

    I can't find anything in this file that looks remotely like the image in your first post.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How to render a formula inactive

    Put this code in the module for the worksheet having your table. Update red references to match your actual sheet, where 3 is the column with CLOSED and A is the column with the date.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-25-2019
    Location
    Tampa,Florida
    MS-Off Ver
    MS 10
    Posts
    5

    Re: How to render a formula inactive

    Thanks, I'll give your code a try below. Hmm..The file I uploaded is the exact one that I uploaded a screenshot from yesterday.

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: How to render a formula inactive

    I see the problem. On sheet KANBAN DATA you have frozen the panes at row 19. However, given the format of your file, my laptop screen is not big enough to see row 19 so all I can see is 1-16, and it won't scroll down.

    So for 3 use 11 and for A use J.

  8. #8
    Registered User
    Join Date
    11-25-2019
    Location
    Tampa,Florida
    MS-Off Ver
    MS 10
    Posts
    5

    Re: How to render a formula inactive

    Thanks! All good.

+ 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] Formula to render certain values blank
    By heytherejem in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-13-2018, 10:28 AM
  2. [SOLVED] VBA code to freeze calculated value & render formula 'inactive'?
    By Big.Moe in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 03-15-2017, 08:14 PM
  3. [SOLVED] Formula to find inactive employees
    By rizmomin in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-26-2014, 06:26 PM
  4. [SOLVED] Active/Inactive Formula
    By greenmonke in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2014, 05:28 PM
  5. [SOLVED] Column Function to Render Zero
    By rentb23 in forum Excel General
    Replies: 5
    Last Post: 11-03-2012, 10:08 AM
  6. [SOLVED] Formula auditing inactive
    By mthomas4 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-22-2006, 05:10 AM
  7. Update a formula on an inactive sheet
    By shai-hulud in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-26-2006, 08:30 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