Excel Division Help

Cruiser69

Board Regular
Hi all.

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

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
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)

Edit: Removed mine as Alan's is better

Last edited:
Thanks a lot.

This is exactly what I was looking for

Regards,

Graham

you're welome

Replies
0
Views
636
Replies
1
Views
519
Replies
5
Views
688
Replies
2
Views
721

1,216,297
Messages
6,129,956
Members
449,545
Latest member
SURY

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.

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

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