Counting multiple lines of one order

nocturne

New Member
Joined
Feb 27, 2019
Messages
6
A1B1C1D1
Order No:BOX or WRAPMediumLarge
MK23110
MK23101
MK23110
MK24110
MK24101

<tbody>
</tbody>


B1, have sorted to 1 for BOX and 0 for Wrap

I would like to count, how many medium and how many large boxes for each Order No:

The output should be as below:

Order No:Medium BoxLarge Box
MK2321
MK2411

<tbody>
</tbody>

Thanks in advance
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
How about


Excel 2013/2016
ABCDEFGHIJKL
1Order No:BOX or WRAPMediumLargeOrder No:Medium BoxLarge Box
2MK23110MK2321
3MK23101MK2411
4MK23110
5MK24110
6MK24101
User2
Cell Formulas
RangeFormula
K2=COUNTIFS($A:$A,$J2,$B:$B,1,C:C,1)
L2=COUNTIFS($A:$A,$J2,$B:$B,1,D:D,1)
 
Upvote 0
Order No:BOX or WRAPMediumLarge
MK23110
MK23101
MK23110
MK24110
MK24101
B1, have sorted to 1 for BOX and 0 for Wrap
I would like to count, how many medium and how many large boxes for each Order No:
The output should be as below:
Order No:
Medium BoxLarge Box
MK2321
MK2411
Order No:
BOX or WRAPMediumLarge
MK23110
MK23101
MK23110
MK24110
MK24101
MediumLarge
MK2321
MK2411
the 2 is obtained by
=SUMPRODUCT(($G$22:$G$26=$F32)*($I$22:$I$26))

<colgroup><col span="12"></colgroup><tbody>
</tbody>
 
Upvote 0
Thanks both , but i do not know all the Order no:, there are about 200 orders. Preferably, i do not want to list them down one by one.

Do i get the list of the orders since they are multiple entries for each order?

Regards
 
Upvote 0
Maybe


Excel 2013/2016
ABCDEFGHIJKL
1Order No:BOX or WRAPMediumLargeOrder No:Medium BoxLarge Box
2MK23110MK2321
3MK23101MK2411
4MK23110MK2511
5MK24110
6MK24101
7MK25110
8MK25101
User2
Cell Formulas
RangeFormula
J2=IFERROR(INDEX($A$2:$A$8,MATCH(0,INDEX(COUNTIF(J$1:J1,$A$2:$A$8),0),0)),"")
K2=COUNTIFS($A:$A,$J2,$B:$B,1,C:C,1)
L2=COUNTIFS($A:$A,$J2,$B:$B,1,D:D,1)
 
Upvote 0

Forum statistics

Threads
1,214,387
Messages
6,119,225
Members
448,877
Latest member
gb24

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