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 is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
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,223,896
Messages
6,175,262
Members
452,627
Latest member
KitkatToby

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