In a spreadsheet I have, the SUMIF function is being used. Single values from another column can be summed up remarkably well, however, I'd like to have the option of potentially multiplying a single entry's value beforehand.

Since I can't attach photographs, I'll try to describe them instead. I have this equation in my spreadsheet:

=SUMIF(L25:L31,"x",$K$25:$K$31)

The value from column K will be added to the sum if I place a "x" on a row in column L. I want to be able to multiply the value before the summing using the operators "x2," "x3," "x4", etc. Is Excel able to do that?