I just want to get the sum of all the values on the left side and not include the date.
Hey, Try this, even the data is inconsistent with more spaces, this will work.
=SUMPRODUCT(LEFT(A2:A6,SEARCH("-",SUBSTITUTE(A2:A6," ",""))-1)+0)