+ Reply to Thread
Results 1 to 6 of 6

Automate a cell to change from a formula result to the value only

Hybrid View

  1. #1
    Registered User
    Join Date
    10-29-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Enterprise 2007
    Posts
    51

    Automate a cell to change from a formula result to the value only

    Hi all, I am trying to create a formula that records weekly results of my balance sheet, for example my net profit.
    I am hoping to track my business over 52 weeks and graph the results to find patterns. My computer is on all the time, and I have a lot of things automated, but I am often unable to copy this data down manually at regular intervals.

    I already have a formula which can return the 'net profit' result on a separate sheet at a certain time every week. The problem is that being a formula, it continues to update every time my net profit changes, rendering the result useless.

    What I need is another formula which can take that result, and turn it into a value only. I was thinking something along the lines of an IF function.

    For example,
    Cell C2 has the date based formula that records the net profit at a set time,
    C3 has an IF function. Something along the lines of, IF(FALSE,0,awesome function that copies the result and makes it a value)

    is there a way to do this at all?
    Thanks all
    Last edited by Bobbo Jones; 01-04-2017 at 03:04 AM.

  2. #2
    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,479

    Re: automate

    You will need VBA to do this.

    Attach a sample workbook.

    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.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: automate

    Unfortunately your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    10-29-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Enterprise 2007
    Posts
    51

    Re: Automate a cell to change from a formula result to the value only

    Title updated. I posted late at night and forgot to finish the title.

    Thanks for your response John, I've attached an attempt at an example workbook.
    For simplicities sake I have changed the goal from 'net profit' to 'Total Sales'

    B3 has the start date which was manually entered. The rest of B column has an IF function that triggers when TODAY is greater than 7 days from the cell above.

    The C column has an IF formula that triggers when the adjacent B cell is no longer FALSE or an error.
    It reveals the 'Total Sales' of that moment. All cells above that also have this formula will reveal the identical result, which is where my problem lies.

    Column D is where the result I want will go. Cells D 3&4 I have manually added up and entered, simply to pose what I would like the results to look like.
    Cell D5 is an IF function that is currently revealing the if true scenario. I want it to take the $917 currently shown in cell C5, and convert it to the value only.
    I want it to trigger only when that IF function it is within tells it to.

    Keep in mind that on the 9th of Jan these cell references will change due to the date dependant formula.
    I am content with all the error's but if a neat fix is known for that let me know! I had an if error at the start but the following formulas were getting confused by it as it gives a Boolean result.

    I hope this is clear?? Let me know if I can clarify anything
    Thanks everybody!
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Automate a cell to change from a formula result to the value only

    Right Click on the sheet name at the bottom of excel and select view code.

    A macro module will open.

    Paste this code there and close it.

    
    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Cells.Count > 1 Or Target.Column <> 3 Then Exit Sub
    Target.Offset(0, 1).Value = Target.Value
    End Sub
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  6. #6
    Registered User
    Join Date
    10-29-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Enterprise 2007
    Posts
    51

    Re: Automate a cell to change from a formula result to the value only

    Thanks..
    Is there any possible work around that does not require VBA?

+ 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. Automate
    By markcrooks in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-01-2013, 06:00 AM
  2. How to Automate a SpreadSheet?
    By davey11372 in forum Excel General
    Replies: 3
    Last Post: 02-14-2010, 03:04 PM
  3. how to automate this...
    By Arron77 in forum Excel General
    Replies: 7
    Last Post: 02-23-2009, 08:46 AM
  4. Automate 1
    By vijaydsk in forum Excel Formulas & Functions
    Replies: 24
    Last Post: 04-02-2007, 11:26 PM
  5. Automate Macro
    By Chiku in forum Excel General
    Replies: 0
    Last Post: 12-14-2005, 08:30 PM
  6. [SOLVED] Automate without add-ins
    By Rob Oldfield in forum Excel General
    Replies: 3
    Last Post: 10-21-2005, 03:05 PM
  7. Automate Add-in
    By Gary's Student in forum Excel General
    Replies: 4
    Last Post: 06-19-2005, 10:05 PM
  8. Trying to automate
    By Robert Gillard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-05-2005, 08:06 AM

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