Help requested for analysing batches

BRAD4

New Member
Joined
Feb 26, 2016
Messages
2
Can anyone advise an easy way to analyse the number of "groups" or batches, min batch size, max batch size and average batch size? For example, if you were counting widgets going past you, in colour a, b or c.

Sequence Col Col Col
# a b c
----------------------------
1 a
2 b
3 a
4 a
5 a
6 b
7 b
8 c
9 a
10 a
11 b
12 b
13 c
14 a
15 c

Analysis:
Colour a b c
No of items 7 5 3
No Batches 4 3 3
Ave Batch Size 1.75 1.66 1
Min Batch Size 1 1 1
Max Batch Size 3 2 1

Thanks in advance!
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Welcome to the Forum!

Try this:

B18: =COUNTIF($B1:$B15,B17)
B19: =SUMPRODUCT(--($B1:$B15=B17),--($B2:$B16<>B17))
B20: =IFERROR(B18/B19,"N/A")
B21: {=MIN(IF(FREQUENCY(IF($B1:$B15=B17,ROW($B1:$B15)), IF(1-($B1:$B15=B17),ROW($B1:$B15))),
FREQUENCY(IF($B1:$B15=B17,ROW($B1:$B15)),IF(1-($B1:$B15=B17),
ROW($B1:$B15)))))} Array-entered
B22: {=MAX(FREQUENCY(IF($B1:$B15=B17,ROW($B1:$B15)),IF($B1:$B15<>B17,ROW($B1:$B15))))} Array-entered

Excel 2010
ABCD
11a
22b
33a
44a
55a
66b
77b
88c
99a
1010a
1111b
1212b
1313c
1414a
1515c
16
17abc
18Number753
19Batches433
20Av Batch1.751.671.00
21Min Batch111
22Max Batch321

<colgroup><col style="width: 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>

 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,421
Members
448,961
Latest member
nzskater

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
Back
Top