Thank you all. I got it to work by using the formular below.
{=SUM(IF(LEFT(taskname,16)=LEFT(a1,16),project,0))}
How could I add another condition of named date ranges "dateinformation"?
{=SUM(IF((dateinformation>DATE(2011,1,1))*(LEFT(taskname,16)=LEFT(a1,16),project,0)}