A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
This will sum column B for a batsman in column A even if there is a * at the end of the number. The batsman to sum is in D1 and note it will not handle blank cells in column B
=SUMPRODUCT((A2:A10=D1)*(--SUBSTITUTE(B2:B10,"*","")))
IMHO it would be much simpler to put the * in another column then you can count a batsman runs with:-
=SUMIFS(B2:B20,A2:A20,D1)
and the total innings with
=COUNTIF(A2:A20,D1)
and the not-out innings with
=COUNTIFS(A2:A20,D1,C2:C20,"*")