The formula list as below. 
Set Row=4 to group the Sales Line and Shipment Line. Also, reserve 1 blank row.

 Result: