Count cells in the column that have the same first five characters in Excel
=SUM(IF(LEFT(A2,5)=LEFT(A3,5),1,0))
=SUM(IF(LEFT(A2,5)=LEFT(A3,5),1,0))
=SUM(IF(LEFT(A2,5)=LEFT(A3,5),1,0))
A2 = data cell 1
B2 = data cell 2
=SUM(IF(LEFT(A2,5)=LEFT(B2,5),1,0))
A2 = data cell 1
B2 = data cell 2