Share via

Formula that will both add and subtract in a single cell

Anonymous
2012-07-25T18:23:19+00:00

I need to come up with a single formula in one cell that will allow me to both add and subtract.  Here's what I have.  In cell B2 I have quantity on hand. In C2 I need to inbed a formula that both adds and subtracts from the number in B2 and spit the new total in D2. The SUM function alone will not calculate the numbers correctly, and they have to be absolutly correct. I have a lot of inventory that I am tracking and this formula needs to be used for all of them.  Anyone have any ideas?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

4 answers

Sort by: Most helpful
  1. Anonymous
    2012-07-25T18:42:07+00:00

    Hello

    give a sample of some cells to help you

    a formula in one cell cannot influence by itself another cell... D2 will have it's own formula

    2 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2012-07-25T23:40:30+00:00

    nope, still don't get the picture

    Show us at least 4 lines only with data - no calculations

    Show again same 4 lines with results, done manually (by you with the correct values) and explain

    I believe that then we'll be able to help

    0 comments No comments
  3. Anonymous
    2012-07-25T21:19:52+00:00

    Sounds like you need to write a nested formula.  Could you give an example of what you have already written in the cell that you want to add and subtract in?  This way we could then suggest nested formulas that would most likely provide you with the right answer. :).

    0 comments No comments
  4. Anonymous
    2012-07-25T21:11:47+00:00

    But I need to refrence both cells.  Kind of like if I was only doing a SUM function.  The only difference is, that I want it to both add and subtract within on formula.

    This what part of my spreadsheet looks like.  So where it says 118(Total Quantity on hand),that is in cell C2. Now, in D2 is where I am going to be adding or subtracting quantities, then I want the adjusted amount to populate in cell E2 where it says "Total Comforts.  If I use a SUM function, it will add to the total number, but then when I subtrack, it take all the numbers I have added to E2 adds those together and then subtracks all of it from my quantity on hand.  For example, 118 in stock, I add 12.  This gives me 132 in stock. Then I save my changes.  Come back to it, subtract 2, and instead of subtracking 2, it subtracts 14.  See what I'm saying? 

    Part Number Discription Comfort **** Total Comforts
    EB-PUR-7000 M-5 W6-6.5 118 118
    0 comments No comments