Excel Division Help

Cruiser69

Board Regular
Joined
Mar 12, 2018
Messages
68
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.

[TABLE="width: 508"]
<tbody>[TR]
[TD="width: 63, bgcolor: transparent"]
A
[/TD]
[TD="width: 212, bgcolor: transparent"]
B
[/TD]
[TD="width: 123, bgcolor: transparent"]
C
[/TD]
[TD="width: 83, bgcolor: transparent"]
D
[/TD]
[TD="width: 95, bgcolor: transparent"]
E
[/TD]
[TD="width: 103, bgcolor: transparent"]
F
[/TD]
[/TR]
[TR]
[TD="width: 63, bgcolor: transparent"]
LOT

[/TD]
[TD="width: 212, bgcolor: transparent"]DESCRIPTION
[/TD]
[TD="width: 123, bgcolor: transparent"]CODES
[/TD]
[TD="width: 83, bgcolor: transparent"]
VENDOR

[/TD]
[TD="width: 95, bgcolor: transparent"]TOTAL COST
[/TD]
[TD="width: 103, bgcolor: transparent"]INDIVIDUAL COST
[/TD]
[/TR]
[TR]
[TD="width: 63, bgcolor: transparent"]668
[/TD]
[TD="width: 212, bgcolor: transparent"]QTY OF ASSORTED DECORATIONS
[/TD]
[TD="width: 123, bgcolor: transparent"]4959522
[/TD]
[TD="width: 83, bgcolor: transparent"]JL-420
[/TD]
[TD="width: 95, bgcolor: transparent"]120
[/TD]
[TD="width: 103, bgcolor: transparent"]17.14
[/TD]
[/TR]
[TR]
[TD="width: 63, bgcolor: transparent"]668
[/TD]
[TD="width: 212, bgcolor: transparent"].
[/TD]
[TD="width: 123, bgcolor: transparent"]4929860
[/TD]
[TD="width: 83, bgcolor: transparent"]JL-420
[/TD]
[TD="width: 95, bgcolor: transparent"][/TD]
[TD="width: 103, bgcolor: transparent"]17.14
[/TD]
[/TR]
[TR]
[TD="width: 63, bgcolor: transparent"]668
[/TD]
[TD="width: 212, bgcolor: transparent"].
[/TD]
[TD="width: 123, bgcolor: transparent"]4944710
[/TD]
[TD="width: 83, bgcolor: transparent"]JL-420
[/TD]
[TD="width: 95, bgcolor: transparent"][/TD]
[TD="width: 103, bgcolor: transparent"]17.14
[/TD]
[/TR]
[TR]
[TD="width: 63, bgcolor: transparent"]668
[/TD]
[TD="width: 212, bgcolor: transparent"].
[/TD]
[TD="width: 123, bgcolor: transparent"]4957066
[/TD]
[TD="width: 83, bgcolor: transparent"]JL-420
[/TD]
[TD="width: 95, bgcolor: transparent"][/TD]
[TD="width: 103, bgcolor: transparent"]17.14
[/TD]
[/TR]
[TR]
[TD="width: 63, bgcolor: transparent"]668
[/TD]
[TD="width: 212, bgcolor: transparent"].
[/TD]
[TD="width: 123, bgcolor: transparent"]4957498
[/TD]
[TD="width: 83, bgcolor: transparent"]JL-420
[/TD]
[TD="width: 95, bgcolor: transparent"][/TD]
[TD="width: 103, bgcolor: transparent"]17.14
[/TD]
[/TR]
[TR]
[TD="width: 63, bgcolor: transparent"]668
[/TD]
[TD="width: 212, bgcolor: transparent"].
[/TD]
[TD="width: 123, bgcolor: transparent"]4831395
[/TD]
[TD="width: 83, bgcolor: transparent"]JL-420
[/TD]
[TD="width: 95, bgcolor: transparent"][/TD]
[TD="width: 103, bgcolor: transparent"]17.14
[/TD]
[/TR]
[TR]
[TD="width: 63, bgcolor: transparent"]668
[/TD]
[TD="width: 212, bgcolor: transparent"].
[/TD]
[TD="width: 123, bgcolor: transparent"]4911201
[/TD]
[TD="width: 83, bgcolor: transparent"]JL-420
[/TD]
[TD="width: 95, bgcolor: transparent"][/TD]
[TD="width: 103, bgcolor: transparent"]17.14
[/TD]
[/TR]
[TR]
[TD="width: 63, bgcolor: transparent"]669
[/TD]
[TD="width: 212, bgcolor: transparent"]QTY OF ASSORTED FESTIVE LIGHTING
[/TD]
[TD="width: 123, bgcolor: transparent"]4931177
[/TD]
[TD="width: 83, bgcolor: transparent"]JL-420
[/TD]
[TD="width: 95, bgcolor: transparent"]87
[/TD]
[TD="width: 103, bgcolor: transparent"]17.40
[/TD]
[/TR]
[TR]
[TD="width: 63, bgcolor: transparent"]669
[/TD]
[TD="width: 212, bgcolor: transparent"].
[/TD]
[TD="width: 123, bgcolor: transparent"]4948200
[/TD]
[TD="width: 83, bgcolor: transparent"]JL-420
[/TD]
[TD="width: 95, bgcolor: transparent"][/TD]
[TD="width: 103, bgcolor: transparent"]17.40
[/TD]
[/TR]
[TR]
[TD="width: 63, bgcolor: transparent"]669
[/TD]
[TD="width: 212, bgcolor: transparent"].
[/TD]
[TD="width: 123, bgcolor: transparent"]4944191
[/TD]
[TD="width: 83, bgcolor: transparent"]JL-420
[/TD]
[TD="width: 95, bgcolor: transparent"][/TD]
[TD="width: 103, bgcolor: transparent"]17.40
[/TD]
[/TR]
[TR]
[TD="width: 63, bgcolor: transparent"]669
[/TD]
[TD="width: 212, bgcolor: transparent"].
[/TD]
[TD="width: 123, bgcolor: transparent"]4951716
[/TD]
[TD="width: 83, bgcolor: transparent"]JL-420
[/TD]
[TD="width: 95, bgcolor: transparent"][/TD]
[TD="width: 103, bgcolor: transparent"]17.40
[/TD]
[/TR]
[TR]
[TD="width: 63, bgcolor: transparent"]669
[/TD]
[TD="width: 212, bgcolor: transparent"].
[/TD]
[TD="width: 123, bgcolor: transparent"]4957002
[/TD]
[TD="width: 83, bgcolor: transparent"]JL-420
[/TD]
[TD="width: 95, bgcolor: transparent"][/TD]
[TD="width: 103, bgcolor: transparent"]17.40
[/TD]
[/TR]
</tbody>[/TABLE]


Thanks for looking

Graham
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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