Tsjaikovski
New Member
- Joined
- Jun 26, 2006
- Messages
- 29
Hi,
I have the following data and would like something the happen in a worksheet_change event
ColA ColB Cost Total
1 A 200 1000
2 B 100 500
1 A 200 1000
3 A 50 1000
2 B 100 500
3 A 50 1000
Now I would like to have the following result
ColA ColB Cost Total Diff
1 AC 200 1000 750
2 AD 100 500 400
1 AC 200 1000 750
3 AC 50 1000 750
2 AD 100 500 400
3 AC 50 1000 750
where Diff is the difference between Total and Cost, but only for one unique value found in ColA. For the Value AC in COLB this means 1000-200+50 for the value AD in ColB this means 500-100
I hope this can be done easily.
Thx for helping me out.
Tsjai
I have the following data and would like something the happen in a worksheet_change event
ColA ColB Cost Total
1 A 200 1000
2 B 100 500
1 A 200 1000
3 A 50 1000
2 B 100 500
3 A 50 1000
Now I would like to have the following result
ColA ColB Cost Total Diff
1 AC 200 1000 750
2 AD 100 500 400
1 AC 200 1000 750
3 AC 50 1000 750
2 AD 100 500 400
3 AC 50 1000 750
where Diff is the difference between Total and Cost, but only for one unique value found in ColA. For the Value AC in COLB this means 1000-200+50 for the value AD in ColB this means 500-100
I hope this can be done easily.
Thx for helping me out.
Tsjai