Here's one guess ..
Assume this table is in Sheet1, cols A to C, data from row2 down
Order No Order QTY DO QTY
CO1 1000 200
CO1 1000 100
CO2 300 10
CO2 300 5
CO2 300 20
Using 2 empty cols to the right, say cols E and F
Put in E2: =A2&B2
Put in F2: =IF(E2="","",IF(COUNTIF($E$2:E2,E2)>1,"",ROW()))
Select E2:F2, fill down to say F1000 to cover the max expected number of
rows that data is expected in the table
Cols E and F are helper columns: col E will create concat strings to
identify the Order No and Qty as one entity, col F will tag and assign
arbitrary row numbers to unique items in col E. These 2 cols will be read by
formulas we're going to put in Sheet2.
In Sheet2
---------
Paste the same headers into A1:C1
Order No Order QTY DO QTY
Put in A2:
=IF(ISERROR(SMALL(Sheet1!$F:$F,ROWS($A$1:A1))),"",INDEX(Sheet1!A:A,MATCH(SMALL(Sheet1!$F:$F,ROWS($A$1:A1)),Sheet1!$F:$F,0)))
Copy A2 to B2
Put in C2:
=IF(OR(A2="",B2=""),"",SUMIF(Sheet1!E:E,A2&B2,Sheet1!C:C))
Select A2:C2, fill down to C1000
(fill down by the same number of rows that was catered for in Sheet1)
For the sample data in Sheet1, you'll get the results:
Order No Order QTY DO QTY
CO1 1000 300
CO2 300 35
( rest are blanks: "" )
Cols A and B will extract the only the unique "Order No - Order Qty"
associations / entities and col C will compute the total for each of these
unique "Order No - Order Qty" entities from Sheet1
Hope the above is what you're after ..