Excel Division Help

Cruiser69

Board Regular
Joined
Mar 12, 2018
Messages
61
Office Version
  1. 365
Platform
  1. Windows
Hi all.

Could anyone please help with a division query.

The Lots have been split into separate lines from the codes in Column C.
The total cost of the Lots combined are in Column E
Is there a way to divide the total cost by the number of items in the Lot
As there are 7 items within Lot 668, each item would be £17.14
I could divide each Lot but that would take a lot of time.
Is there a Formula or VBA for Column F which could do the job in less time.


A

B

C

D

E

F

LOT

DESCRIPTION
CODES

VENDOR

TOTAL COST
INDIVIDUAL COST
668
QTY OF ASSORTED DECORATIONS
4959522
JL-420
120
17.14
668
.
4929860
JL-420
17.14
668
.
4944710
JL-420
17.14
668
.
4957066
JL-420
17.14
668
.
4957498
JL-420
17.14
668
.
4831395
JL-420
17.14
668
.
4911201
JL-420
17.14
669
QTY OF ASSORTED FESTIVE LIGHTING
4931177
JL-420
87
17.40
669
.
4948200
JL-420
17.40
669
.
4944191
JL-420
17.40
669
.
4951716
JL-420
17.40
669
.
4957002
JL-420
17.40

<tbody>
</tbody>


Thanks for looking

Graham
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
copy F2 down


Book1
ABCDEF
1LOTDESCRIPTIONCODESVENDORTOTAL COSTINDIVIDUAL COST
2668QTY OF ASSORTED DECORATIONS4959522JL-42012017.14
3668.4929860JL-42017.14
4668.4944710JL-42017.14
5668.4957066JL-42017.14
6668.4957498JL-42017.14
7668.4831395JL-42017.14
8668.4911201JL-42017.14
9669QTY OF ASSORTED FESTIVE LIGHTING4931177JL-4208717.40
10669.4948200JL-42017.40
11669.4944191JL-42017.40
12669.4951716JL-42017.40
13669.4957002JL-42017.40
Sheet4
Cell Formulas
RangeFormula
F2=SUMIF(A:A,A2,E:E)/COUNTIF(A:A,A2)
 
Upvote 0
Thanks a lot.

This is exactly what I was looking for

Regards,

Graham
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,448
Members
448,966
Latest member
DannyC96

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