# For the formula guru's out there another Part of The Puzzle

#### brettvba

##### MrExcel MVP
Book1
ABCD
2AmountAmountInCarton
360012
445612
55474312
6234612
723562324
832576
9457424
103424
117774
1245724
134572412
142762712
157556
1657312
1732548
Sheet1

Normally there are upto 18000 rows but,
Using the above example where ColA is units and ColB is how many units in a carton, without having the formula (ColA/ColB) in ColC and then adding it up at the bottom.

I wish to have the total amount of cartons in one formula is this possible?

Brett
This message was edited by brettvba on 2002-10-24 20:13

### Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

#### IML

##### MrExcel MVP
Not sure if I follow, but try something along the lines of
=SUMPRODUCT(A1:A4,1/B1:B4)

adjusted for your range. where is a
=sumquotient function when you need it?

##### MrExcel MVP
Hi Brett,

try:

=SUM(ROUNDUP(A1:A15/B1:B15,0))

array entered.

EDIT: or following IML's sumproduct route:

=SUMPRODUCT((ROUNDUP(A1:A15/B1:B15,0)))

This message was edited by PaddyD on 2002-10-24 19:28

#### Gates Is Antichrist

##### Well-known Member
paddy, that is a Totally Awesome solution - if you don't mind being complimented by the Antichrist. To pull that one out shows that you have formidable powers!

#### IML

##### MrExcel MVP
On 2002-10-24 19:34, Gates Is Antichrist wrote:
paddy, that is a Totally Awesome solution - if you don't mind being complimented by the Antichrist. To pull that one out shows that you have formidable powers!

So you are gates! That explains some things.

##### MrExcel MVP
insert blushing smilie here..

...although I suppose we should wait to see if it's what Brett wants!

#### brettvba

##### MrExcel MVP
Thanks Guys I need to brush up on my formula skills, I have used =SUMPRODUCT(A3:A17/B3:B17)
if I use the round up it gives me about 6 extra ctns but would be ideal if I wanted to count a part carton as a whole carton.

Thanks Guys

Brett

#### brettvba

##### MrExcel MVP
Ok this now brings me to my problem I think I need a sumif somewhere in here but here goes.

Ok I need to get the total number of ctns for example john.
using the formula before to get the ctns and then adding the sum of the cartons to the formula of the units but only for John (I know im just babbling but you get my point)
Any Ideas??

Brett
Book1
ABCD
1
2NameCartonsUnitsAmountInCarton
3Bob4560012
4Bob34545612
5Bob34525474312
6Bob626234612
7Bob23623562324
8Bob23632576
9Bob6457424
10Bob263424
11Bob67774
12John266645724
13John264572412
14John262762712
15John26477556
16John754757312
17John24732548
Sheet1

##### MrExcel MVP
On 2002-10-24 20:13, brettvba wrote:
Ok this now brings me to my problem I think I need a sumif somewhere in here but here goes.

Ok I need to get the total number of ctns for example john.
using the formula before to get the ctns and then adding the sum of the cartons to the formula of the units but only for John (I know im just babbling but you get my point)
Any Ideas??

Brett
Book1
ABCD
1
2NameCartonsUnitsAmount In Carton
3Bob4560012
4Bob34545612
5Bob34525474312
6Bob626234612
7Bob23623562324
8Bob23632576
9Bob6457424
10Bob263424
11Bob67774
12John266645724
13John264572412
14John262762712
15John26477556
16John754757312
17John24732548
Sheet1

Brett,

It's

=SUMPRODUCT((\$A\$3:\$A\$17="john")*(\$B\$3:\$B\$17/\$C\$3:\$C\$17))

You can have "john" in a cell of its own and use that cell in the formula.

#### brettvba

##### MrExcel MVP
Correct me if im wrong its probably my fault for explaining it wrong but in the end the one formula i want is basically
Sum of the Cartons (eg with John as the Name)
Sum of the units / Carton qty in ColD
Sum of both of the above formulas for a name eg John.

the answer for the above example should be
40041.10417

Thanks

BRett

Replies
2
Views
2K
Replies
0
Views
584
Replies
11
Views
1K
Replies
3
Views
526
Replies
3
Views
650

1,181,580
Messages
5,930,720
Members
436,757
Latest member
Marijn

### 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?

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