+ Reply to Thread
Results 1 to 4 of 4

What is the best way to save data that is formula dependent?

  1. #1
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    What is the best way to save data that is formula dependent?

    This is a general question and not one that needs to end with a formula per say.

    I was wondering what the accepted (or best method) for saving data on a worksheet that is formula dependent?

    I have a workbook that has a calculation page that takes todays order numbers and other cell values to return a set range of values needed for my business. The "Daily reporting page" will not ever be deleted and will be available to anyone who might want to look back and see what was done on that particular day.

    The issue is the calculation page becoming bogged down with old data that the formulas on the reporting page needs to reference. The optimal solution would be to "wipe" the calculation page and start fresh the next day, but all the returned values on the reporting page would #Ref! out.

    What is the best way to "preserve" the old data for future use without eventually having a calculation page miles long, or having to create an simple "archive" macro that would copy the whole page and paste as text that inevitably someone would forget to run.

    Or are those my only two solutions?

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,445

    Re: What is the best way to save data that is formula dependent?

    Hi,

    In the past I've dealt with "freezing" a monthly record by having a macro that ran automatically as the workbook closed. Each month was stored on an individual worksheet. The macro would compare the names of each worksheet and if previous to the current date, would set all cells to their current value, thereby removing the formulae.

    Could you post an example of what you have and what you'd like - perhaps a small amount of code would sort this for you.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Contributor
    Join Date
    04-04-2016
    Location
    dallas tx
    MS-Off Ver
    365 (15.0.5501.1000)
    Posts
    534

    Re: What is the best way to save data that is formula dependent?

    It would have to be a macro that checked the cell position on a row and verify value, and if condition is true, then convert formula in cell "blank" to value.

    tab 12, column I, if cell value is 0 then convert cells in column J and O to value.

    Macro run when cell in column I hits 0
    Attached Files Attached Files
    Last edited by chriswrcg; 08-12-2022 at 09:15 AM.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,256

    Re: What is the best way to save data that is formula dependent?

    Try

    Please Login or Register  to view this content.


    Right click on I2 tab, "View Code", Copy/Paste above code
    Last edited by JohnTopley; 08-12-2022 at 12:05 PM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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] Create 7 dependent dropdown using data validation based on multiple dependent columns
    By b_raj_kumar in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 11-07-2021, 05:20 PM
  2. VBA to save file dependent on value in a cell
    By freedox in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-10-2021, 09:39 AM
  3. Replies: 3
    Last Post: 02-03-2019, 02:55 AM
  4. [SOLVED] Dependent dropdown validation - dependent data is string
    By jnewby in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-12-2014, 07:50 PM
  5. save to file dependent on cell
    By sdts in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-26-2010, 04:55 AM
  6. save data to worksheet dependent on userform dropdown
    By mhill in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-17-2009, 03:57 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