Businesses Issue.

ANahedd

New Member
Joined
Aug 27, 2018
Messages
1
Greetings,


Unfortunately, aim facing a very complicated problem in excel and I need your solution please.

Briefly, if I have a product A as follows:

Product
Qty
Price
A
-3
100
A
-5
130
A
4
??
A
4
??

<tbody>
</tbody>

3 parts were withdrawn with price 100, another 5 were withdrawn with a higher price 130, then 4 PCs were Returned with what price ??? I need to automatically calculate the accurate returned price to be as follows.

A
-3
100
A
-5
130
A
4
118.75
A
4
130

<tbody>
</tbody>

Cell C4 = 118.75 = ((100*-3)+(130*-5)) / -8
Cell C5 I need the result would be 130 ( the 4 rest from the -5 at B3)


Another issue:

What if there were a lot of products as follows:

Product
Qty
Price
A
-3
100
A
-4
120
B
-6
40
C
-1
70
D
-6
40
B
-3
60
A
-2
110
C
-2
80
B
-5
50
B
-6
55
B
3

C
6

D
5

A
5

A
2

B
5

C
3


<tbody>
</tbody>

Your prompt response would be highly appreciated.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,215,049
Messages
6,122,864
Members
449,097
Latest member
dbomb1414

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