Rather than comparing three columns to three criteria separately, create a key column that concatenates the three fields for each record (I always include a separator character too) and then use SUMIF on that. For example, your code is checking cols G, C and K, so if you added a new column to the table using:
=G2&"|"&C2&"|"&K2
and then use that column in a SUMIF something like:
=SUMIF(new_column,$A1&"|"&B$1&"|az")