+ Reply to Thread
Results 1 to 11 of 11

Formulas disappearing, only values remain in cell

  1. #1
    Registered User
    Join Date
    11-08-2017
    Location
    Minnesota
    MS-Off Ver
    2013
    Posts
    20

    Unhappy Formulas disappearing, only values remain in cell

    I've been having this problem for a long time now. I have a sheet with over 100 formulas. Several months ago, most of the formulas disappeared. I have reentered them from a backup copy and now many of them have disappeared again but not all of them.

    I'm pulling my hair out here, many of these formulas are very large and complex. I'm not sure how formulas can go away with just the calculated value remaining in the cell. And again, it's not all of the formulas, just some of them - maybe 30% or so

    If my workbook is corrupted somehow, is there a way to repair it?

    Thanks a million

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Formulas disappearing, only values remain in cell

    Hello JRF7928,

    Have you tried "Office Repair"? If that does not work for you, please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    45,041

    Re: Formulas disappearing, only values remain in cell

    Is there a reason you have posted this under Excel Programming?
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    11-08-2017
    Location
    Minnesota
    MS-Off Ver
    2013
    Posts
    20

    Re: Formulas disappearing, only values remain in cell

    Quote Originally Posted by TMS View Post
    Is there a reason you have posted this under Excel Programming?
    Yes, It's a large application with about 20 Userforms and several thousand lines of code

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    45,041

    Re: Formulas disappearing, only values remain in cell

    OK, that makes sense. Couldn't really guess at that though.

    Does any of your code copy formulae and paste special | Values? Or do you use .Value = .Value anywhere?

    It's possible that you might have inadvertently triggered the code when you have part of a sheet selected ... maybe?

  6. #6
    Registered User
    Join Date
    11-08-2017
    Location
    Minnesota
    MS-Off Ver
    2013
    Posts
    20

    Re: Formulas disappearing, only values remain in cell

    Quote Originally Posted by TMS View Post
    OK, that makes sense. Couldn't really guess at that though.

    Does any of your code copy formulae and paste special | Values? Or do you use .Value = .Value anywhere?

    It's possible that you might have inadvertently triggered the code when you have part of a sheet selected ... maybe?
    I use code snippets like this for my reports where I access the value from the formula: CStr(Format(ws.Cells(53, 1).Value * 100, "0.00")) & "%"

    Thanks for taking a look!

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,343

    Re: Formulas disappearing, only values remain in cell

    Do any of your user forms have controls that have their controlsource property set? That can cause what you describe.
    Everyone who confuses correlation and causation ends up dead.

  8. #8
    Registered User
    Join Date
    11-08-2017
    Location
    Minnesota
    MS-Off Ver
    2013
    Posts
    20

    Re: Formulas disappearing, only values remain in cell

    Thank you for the reply. I've never heard of that property so I'm guessing I don't use it. But in reading about it, it's a good idea on your part. I will check my code/forms.

    I'm thinking of locking my formulas now. Might that help prevent them from vanishing?

    Thanks for the help!

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    45,041

    Re: Formulas disappearing, only values remain in cell

    To lock the cells you would need to protect the sheet(s) which could introduce more complications.

  10. #10
    Registered User
    Join Date
    11-08-2017
    Location
    Minnesota
    MS-Off Ver
    2013
    Posts
    20

    Re: Formulas disappearing, only values remain in cell

    Even if I was just accessing the cell value like this: CStr(Format(ws.Cells(53, 1).Value * 100, "0.00")) & "%"?

    Thanks so much

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    45,041

    Re: Formulas disappearing, only values remain in cell

    If you are only "reading" the cell it shouldn't be a problem but if you are changing it you would have to UnProtect the sheet or UserInterfaceOnly.

+ 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] wanting Formulas to remain blank until data entered
    By CznEddie in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 02-16-2019, 02:23 PM
  2. Formulas disappearing and replced by values
    By KarlPedersen in forum Excel General
    Replies: 3
    Last Post: 09-10-2018, 02:27 AM
  3. [SOLVED] Excel 2010: Edit formulas so that cells remain blank if no value is in cell E8
    By Kate in Iowa in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-14-2015, 05:17 AM
  4. [SOLVED] Formulas to remain constant
    By backyardfun in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-04-2014, 07:26 AM
  5. [SOLVED] Trying to get a value to remain copy into a cell and remain the same when condition met
    By shadowlost in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-24-2013, 11:47 AM
  6. Formulas Disappearing after Cell reference changes
    By paxile2k in forum Excel General
    Replies: 4
    Last Post: 12-23-2010, 09:38 PM
  7. Replies: 5
    Last Post: 06-26-2009, 12:42 PM

Tags for this Thread

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