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"]
[/TD]
[TD="width: 212, bgcolor: transparent"]
[/TD]
[TD="width: 123, bgcolor: transparent"]
[/TD]
[TD="width: 83, bgcolor: transparent"]
[/TD]
[TD="width: 95, bgcolor: transparent"]
[/TD]
[TD="width: 103, bgcolor: transparent"]
[/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
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="width: 212, bgcolor: transparent"]
B
[TD="width: 123, bgcolor: transparent"]
C
[TD="width: 83, bgcolor: transparent"]
D
[TD="width: 95, bgcolor: transparent"]
E
[TD="width: 103, bgcolor: transparent"]
F
[/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