+ Reply to Thread
Results 1 to 6 of 6

Adding formulas to cells with data already in them...

  1. #1
    Registered User
    Join Date
    04-17-2013
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    3

    Adding formulas to cells with data already in them...

    Let me start by saying I did search on google and inside the forum here for an answer to my question, but with no luck yet. So I was hoping someone could explain it to me or maybe send me a link to a post already answering this.

    This is for an inventory tracking spreadsheet. What I need to do is be able to add a formula in the background that will automatically adjust the cells in that formula, while still being able to edit those cells manually. For example.. (hope I use the code button right haha)

    Please Login or Register  to view this content.
    ^Just a basic version of my spreadsheet

    What I need to have the amounts of the kits adjust the amounts of the items, while still being able to manually enter the amount of each item. So lets say I have 10 each for items a thru c. When I make kit a, it requires item a and item b in it. So if I enter 1 for kit a, I need to to adjust items a and b to have 9 each now. Make sense so far?

    With that being done, let's say I receive a shipment of item a, now I need to add 10 more to it, making the total 19. So I want to be able to change the data from 9 to 19 without effecting the formula I put in for the kits.

    I hope that makes sense to everyone, tried to be as detailed with it as possible. I'm still fairly new to using excel with my new job so I hope this isn't something really easy to do that I simply just missed haha

    Thanks in advance!

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Adding formulas to cells with data already in them...

    Hi and welcome to the forum

    If I understand you correctly, you want to put a formula in a cell, and then add a value to that same cell, and keep a running total IN that same cell?

    Short answer is...nope, you cannot do that with a regular formula - a cell can contain either entered data (value/text) OR a formula, it cannot contain both.

    I would suggest that you create a column, and then enter data downwards in that column, and then in a separate cell, you have a formula such as =sum() to run the total for you.

    Failing that, maybe some-one will write some VBA for you that could do this
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Adding formulas to cells with data already in them...

    I would suggest you upload a spreadsheet showing how your data is laid out and showing some results.
    As FD stated, can't do what you are describing with formulas (maybe not even with helper columns) and will need VBA code to do that. It is possible with code though.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    04-17-2013
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Adding formulas to cells with data already in them...

    Thanks for your response FDibbins! After playing around with excel for a while I thought that maybe the case but wanted to ask for sure. So is it possible to write this formula in an empty cell that would adjust the values in the cells I need?

  5. #5
    Registered User
    Join Date
    04-17-2013
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Adding formulas to cells with data already in them...

    This is a screenshot of like half the spreadsheet, but it should give you an idea of what I'm working with. Thanks

    Capture.jpg

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Adding formulas to cells with data already in them...

    Refering to post #4 - if you are asking if you can have a formula in cell, say B1, and then you keep entering data in A1, and B1 keeps a runnin total of all entries into A1 - again, the answer is no, not with a regular formula.

    You would need to enter data in A1, A2, A3 etx, and have B1 sum all that data for you.

    Refering to post #5, have you even looked at that picture?? It is almost impossible top see what is what in there, let alone what is doing what. It is for this very reason that we constantly advocate NOT uploading pictures, but rather a sample workbook (no sensitive info) for us to look at

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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