Search code examples
excelexcel-formulasumcell

Getting the sum of a specific number in a cell


I just want to get the sum of all the values on the left side and not include the date.

enter image description here


Solution

  • Example Ans:

    Hey, Try this, even the data is inconsistent with more spaces, this will work.

    =SUMPRODUCT(LEFT(A2:A6,SEARCH("-",SUBSTITUTE(A2:A6," ",""))-1)+0)