As the title suggests, how do I add to one cell and also subtract that same amount on another cell?
As the title suggests, how do I add to one cell and also subtract that same amount on another cell?
With formulas, without VBA: If you want to add something to one cell and subtract the same amount from another cell, the results should be in other cells.
For example. You want add something to B1 and subtract the same amount from B2 and you want the results respectively in C1 and C2 and something is in A1.
Please try in C1: =B1+A1 and try in C2: =B2-A1.
If you don't want the results in other cells (but in the same cells), its not possible with formulas and you need VBA.
Last edited by HansDouwe; 08-26-2023 at 08:32 PM.
How do I accomplish this with a VBA?
I'm not a VBA-expert.
If you want a VBA-solution, please ask a moderator to move this thread to Excel programming / VBA / Macros.
How do I go about doing that?
You can contact the moderators directly via "Report Post" button below your post.
It would be easier to help and test possible solutions if you could attach a copy of your file. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary). See the yellow banner at the top of this page for instructions to attach a file.
You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
Practice makes perfect. I'm very far from perfect so I'm still practising.
Put this in the worksheet module of the sheet with the 3 cells.
Please Login or Register to view this content.
MatrixMan.
--------------------------------------
If this - or any - reply helps you, remember to say thanks by clicking on *Add Reputation.
If your issue is now resolved, remember to mark as solved - click Thread Tools at top right of thread.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks