I would like to combine these two IF statements (see below). The first IF statement is for longing/shorting calls and the corresponding payoffs, and the second IF statement is for longing/shorting puts and the corresponding payoffs. Does anyone know how to do this?

IF(AND($B$10="Call",$B$11="Long"),IF($B$13<B$16,(B$16-$B$13-$B$14)*$B$12*100,-$B$14*$B$12*100),IF(AND($B$10="Call",$B$11="Short"),IF($B$13<B$16,(B$16-$B$13)*$B$12*100,$B$14*$B$12*100)))

IF((AND($B$10="Put",$B$11="Long"),IF($B$13>B$16,($B$13-B$16-$B$14)*$B$12*100,-$B$14*100,IF(AND($B$10="Put",$B$11="Short"),IF($B$13>B$16,(B$16-$B$13)*$B$12*100,$B$14*$B$12*100)))

Thanks!