formula help!

Happyking

Board Regular
Joined
Jul 1, 2006
Messages
204
I have column A with sales channel ID, column B with seller IDs (not in order, but with some duplicate, because a seller can sell his product via different channels). Column C with seller's original volume. Column D with the delivered volume of the most efficient channel (only one channel have a non-zero volume).

Now I want to create colomn E to show the remaining volume of each seller. I want to look up the ID of the seller that delivered volume (the non-zero volume in column D and deduct the delivered volume from that seller.

I can't just use E=C-D because then it won't pick up the correct volume for channel 4 and 7. I can't use pivot table because this is part of an optimization model and i need the calculation to flow through automatically. Thanks!!

A B C D E
1 5 100 0
2 3 20 0
3 7 500 3
4 7 500 0
5 1 90 0
6 2 30 0
7 7 500 0
8 4 200 0
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
I'm guessing you are asking for these results. I'm not clear on it, so please advise. I gathered that you wanted the same total result (ie, 1500 minus the "3") for all occurrences of that Vendor ID.
Larry.
Book2
ABCDE
1151000100
22320020
33750031497
44750001497
55190090
66230030
77750001497
8842000200
Sheet1
 
Upvote 0
I also presumed the same, Larry, but it'd be good if Happyking could clarify.

Matty
 
Upvote 0

Forum statistics

Threads
1,214,849
Messages
6,121,925
Members
449,056
Latest member
denissimo

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