The Stack Overflow podcast is back! Listen to an interview with our new CEO.
1 of 2

You can use the following formula for that:

INDEX(QUERY(Inkomster!A2:G;"SELECT SUM(C) WHERE G="&B3&" AND F='"&A3&"'"),2,0)