Inventory help

I’m just gonna need some help on an inventory system trying to basically get components so they can stack easily easiest way to say is I’m trying to remove greater than the amount equal, and then remove the equal amount and then remove less than at that point in time I usually am at work, but if anybody’s Mountain Standard Time that’d be great