Andy LaPlante
New Member
Hi all! First time poster but have been a silent following of the forums for several years. Great service this site provides many people so thank you very much. Anyway, I'm trying to sum the last 5 values in a given row, but only those that do not contain text or that aren't blank (or have a zero). I was able to pick up a similar function on this forum for the non-blank (or non-zero) values, but am stuck with how to incorporate a function to ignore the text values too. In my worksheet, which I've attached, row 2, columns A through K are the following values:
38.1, 29.5, 43.4, 7.8, 17.7, 15.3, 0, 36.2, 26.7, B, 28
How do I write a formula that sums the last 5 values in row 2 but that ignores the "0" in G2 and the "B" in J2 ?
Currently I'm using the following formula that ignores the blanks/zeros but not sure what to add to this to ignore the "B" entries. I'm doing this same thing for about 100 rows, each of which contains one cell with that "B" value.
=SUMPRODUCT((COLUMN(A2:K2)>=LARGE(COLUMN(A2:K2)*(A2:K2>0),5))*(A2:K2))
Thanks in advance!
38.1, 29.5, 43.4, 7.8, 17.7, 15.3, 0, 36.2, 26.7, B, 28
How do I write a formula that sums the last 5 values in row 2 but that ignores the "0" in G2 and the "B" in J2 ?
Currently I'm using the following formula that ignores the blanks/zeros but not sure what to add to this to ignore the "B" entries. I'm doing this same thing for about 100 rows, each of which contains one cell with that "B" value.
=SUMPRODUCT((COLUMN(A2:K2)>=LARGE(COLUMN(A2:K2)*(A2:K2>0),5))*(A2:K2))
Thanks in advance!