×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to get accumulated result on a cell?

How to get accumulated result on a cell?

How to get accumulated result on a cell?

(OP)
Hi to all, this is what I am looking for and don't know if can be done, we have the data in 3 cells, one is for the initial value, second is for the qty. to add to the first one and the third is for the qty. to substract if is needed. In a fourth cell we want to have the result of the three cells.
Initially if the 2nd and 3rd are zero the value on the 4th will be the same as the 1st, if we change the value on the 2nd, the value on the 4th will change adding this value, if change again now the value on the 4th will change from it's last value by that amount changed on 2nd or 3rd.
In other words the 4th cell is like a memory and always will have the last result from the last inputs on the addition or substracting cells.

RE: How to get accumulated result on a cell?

What you seem to be asking at the beginning of the question and the end seem to be inconsistent.  You seem to be asking whether D1 can be set to A1+B1-C1, which is core functionality of Excel, so I'm guessing that you want something else.

If you're asking whether Excel can remember a previous result, the answer is possibly, depending on how much work you want to put in.  The simplest approach would be to add a 5th column=Now(), which returns the current time.  Copy D1 and E1 into F1 and G1 using Paste Special|Values, which simply copies the numerical values of the equations into new cells for later reference.  The more complicated approach would be to automate that process using Visual Basic.

TTFN

RE: How to get accumulated result on a cell?

What I would usually do is just write the following equation in D2 ( =D1+B2-C2 ), and input every new entry in a new row in the B or C column. In this way you can also see a "log" of all your entries in the spreadsheet:


    A   B   C    D
1  100  10  20   90
2       10   0  100
3        0  50   50
etc.


Another approach can be to set Iteration on with Maximum Iterations = 1 (go to Tools | Options in the menu)
You would have to enter the initial value in column B, and the equation in D1 will be =D1+B1-C1 (so it points to itself). Every time you change something in B1 or C1, the value in D1 is updated. This is a bit tricky, since once you make a mistake, there is no easy correction possible. Even if you Undo your last entry, the value in D1 will keep on being calculated "forward"

Regards,

Joerd

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close