https://exceljet.net/formula/nested-if-function-example
you could have two columns for brokerage
one for lower cost
one for higher cost
that way you can easily see the two difference and can track the number of each like you do with income trades and cost trades