Hi,
A simple way to do this would be to add a column at the end of your TrxTable with an IF formula
=IF(C3="A",1,2)
This column can then be hidden.
In the price column, use the formula
=INDEX($A$14:$C$16,MATCH(DATE(YEAR(A3),MONTH(A3),1),$A$14:$A$16,0),G3+1)
This method gives you more...