=SUMIF(Sheet1!C:C,"company 1",Sheet1!M:M)+SUMIF(Sheet1!C:C,"company 1",F:F)

F:F is empty ...