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

brettvba

MrExcel MVP
Joined
Feb 18, 2002
Messages
1,030
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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

IML

MrExcel MVP
Joined
Feb 15, 2002
Messages
1,743
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?
 

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
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)))

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

Gates Is Antichrist

Well-known Member
Joined
Aug 15, 2002
Messages
1,961
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
Joined
Feb 15, 2002
Messages
1,743

ADVERTISEMENT

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. :)
 

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
insert blushing smilie here..:)

paddy

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

brettvba

MrExcel MVP
Joined
Feb 18, 2002
Messages
1,030

ADVERTISEMENT

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
Joined
Feb 18, 2002
Messages
1,030
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
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,209
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.

Aladin
 

brettvba

MrExcel MVP
Joined
Feb 18, 2002
Messages
1,030
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
 

Forum statistics

Threads
1,144,291
Messages
5,723,532
Members
422,502
Latest member
barakgahtan

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