I'd suggest using the SUMIF version, which allows you to use the cell refs instead of "kr", etc. That is, you can put e.g., "xr" in E1 and "kr" in E2 and use:
=SUMIF(A2:A4,E1,B2:B4)+SUMIF(A2:A4,E2,B2:B4)
If the OR criteria/conditions count 3 or more, you might want to consider using:
=SUMPRODUCT((ISNUMBER(MATCH(A2:A100,E1:E3,0)))*(B2:B100))
where E1:E3 houses the OR criteria.
Aladin