If columns match between two sheets, then keep subtracting amount to 0

Gafc2012

New Member
Joined
Oct 14, 2018
Messages
2
gafc2012 08:21 PM Yesterday
Hi,

This is probably very simple but i'm stuck

I have two sheets, both with References and Amounts in Columns A and B. I would like to subtract the initial amount in Sheet1, Column B by the first amount in Sheet2, Column B providing the References match.

So in sheet2, cell C2, the first result would show 26,000 because the whole 26,000 goes into 30,000 but would then like to see the remainder (4,000) in cell C3

Once this has been met, the rest of the entries for reference ABC123 would be blank and then repeated for the next reference

Any suggestions would be great!
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
gafc2012 08:21 PM Yesterday
Hi,

This is probably very simple but i'm stuck

I have two sheets, both with References and Amounts in Columns A and B. I would like to subtract the initial amount in Sheet1, Column B by the first amount in Sheet2, Column B providing the References match.

So in sheet2, cell C2, the first result would show 26,000 because the whole 26,000 goes into 30,000 but would then like to see the remainder (4,000) in cell C3

Once this has been met, the rest of the entries for reference ABC123 would be blank and then repeated for the next reference

Any suggestions would be great!

Is this acheivable?
 
Upvote 0

Forum statistics

Threads
1,215,014
Messages
6,122,697
Members
449,092
Latest member
snoom82

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