Share more conditions then we will give you formula suggestions.
=SUMIF(Sheet2!A:A,Sheet1!A2,Sheet2!C:C)+SUMIF(Sheet3!A:A,Sheet1!A2,Sheet3!C:C)
You may use power query to combine your tables, after that your formula will be easier.
You can also get what you want directly in Power query.