Excel Division Help

Cruiser69

New Member
Joined
Mar 12, 2018
Messages
37
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

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,342
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
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)
 

Finalfight40

Active Member
Joined
Apr 24, 2018
Messages
273
Office Version
  1. 365
Platform
  1. Windows
Edit: Removed mine as Alan's is better
 
Last edited:

Cruiser69

New Member
Joined
Mar 12, 2018
Messages
37
Office Version
  1. 365
Platform
  1. Windows
Thanks a lot.

This is exactly what I was looking for

Regards,

Graham
 

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,342
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
you're welome
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,015
Messages
5,834,939
Members
430,327
Latest member
Mr_Himalayan778

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
Top