Help with a subtraction problem

aherzog

New Member
Joined
May 27, 2015
Messages
33
I have a column with numbers, let's say B4-B40 with the title Quantity. I now have a second column, let's say D4-D40 which has no numbers in it yet. When I enter a number in any cell in column D, I want the cell in that same row in column B to automatically update the quantity to the difference between the two numbers. For example,

B4=17
I enter 10 into D4
B4 now equals 7

I know this is so simple, I just can't remember how to do it! Thanks.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
You are going to have to do this with VBA otherwise you will wind up with a circular reference in your formula.

If I remove the 10 from D4, should the B4 return to 17?
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top