Set your sheet as:
<TABLE border=0 cellSpacing=0 cellPadding=0 width=452 height=241><COLGROUP><COL style="WIDTH: 14pt; mso-width-source: userset; mso-width-alt: 694" width=19><COL style="WIDTH: 32pt; mso-width-source: userset; mso-width-alt: 1572" width=43><COL style="WIDTH: 18pt; mso-width-source: userset; mso-width-alt: 877" width=24><COL style="WIDTH: 113pt; mso-width-source: userset; mso-width-alt: 5522" width=151></COLGROUP><TBODY><TR style="HEIGHT: 15pt" height=20><TD style="WIDTH: 14pt; HEIGHT: 15pt" class=xl67 height=20 width=19 align=middle>
</TD><TD style="BORDER-LEFT: medium none; WIDTH: 32pt" class=xl68 width=43 align=middle>
A</TD><TD style="BORDER-LEFT: medium none; WIDTH: 18pt" class=xl68 width=24 align=middle>
B</TD><TD style="BORDER-LEFT: medium none; WIDTH: 113pt" class=xl68 width=151 align=middle>
C</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="HEIGHT: 15pt; BORDER-TOP: medium none" class=xl69 height=20 align=middle>
1</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl70 align=middle>
-174,56</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl68 align=middle>
(-)</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl71 align=middle>
The 1° series has 1 element/s.</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="HEIGHT: 15pt; BORDER-TOP: medium none" class=xl69 height=20 align=middle>
2</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl70 align=middle>
796,36</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl68 align=middle>
(+)</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl71 align=middle>
The 2° series has 1 element/s.</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="HEIGHT: 15pt; BORDER-TOP: medium none" class=xl69 height=20 align=middle>
3</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl70 align=middle>
-63,77</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl68 align=middle>
(-)</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl71 align=middle>
</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="HEIGHT: 15pt; BORDER-TOP: medium none" class=xl69 height=20 align=middle>
4</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl70 align=middle>
-14,96</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl68 align=middle>
(-)</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl71 align=middle>
The 3° series has 2 element/s.</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="HEIGHT: 15pt; BORDER-TOP: medium none" class=xl69 height=20 align=middle>
5</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl70 align=middle>
95,63</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl68 align=middle>
(+)</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl71 align=middle>
</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="HEIGHT: 15pt; BORDER-TOP: medium none" class=xl69 height=20 align=middle>
6</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl70 align=middle>
69,23</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl68 align=middle>
(+)</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl71 align=middle>
</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="HEIGHT: 15pt; BORDER-TOP: medium none" class=xl69 height=20 align=middle>
7</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl70 align=middle>
47,85</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl68 align=middle>
(+)</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl71 align=middle>
The 4° series has 3 element/s.</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="HEIGHT: 15pt; BORDER-TOP: medium none" class=xl69 height=20 align=middle>
8</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl70 align=middle>
-189,46</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl68 align=middle>
(-)</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl71 align=middle>
</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="HEIGHT: 15pt; BORDER-TOP: medium none" class=xl69 height=20 align=middle>
9</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl70 align=middle>
-479,63</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl68 align=middle>
(-)</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl71 align=middle>
</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="HEIGHT: 15pt; BORDER-TOP: medium none" class=xl69 height=20 align=middle>
10</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl70 align=middle>
-821,45</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl68 align=middle>
(-)</TD><TD style="BORDER-LEFT: medium none; BORDER-TOP: medium none" class=xl71 align=middle>
The 5° series has 3 element/s.</TD></TR></TBODY></TABLE>
Column C will be your output. Try this:
Code:
Sub test()
n = Cells(Rows.Count, 1).End(xlUp).Row
Range("C1:C" & n).ClearContents
For r = 1 To n
If Cells(r, 1).Value > 0 Then
i = i + 1
If Cells(r + 1, 1).Value < 0 Or Cells(r + 1, 1).Value = "" Then
k = k + 1
Cells(r, 3) = "The " & k & "° series has " & i & " element/s."
i = 0
End If
End If
If Cells(r, 1).Value < 0 Then
j = j + 1
If Cells(r + 1, 1).Value > 0 Or Cells(r + 1, 1).Value = "" Then
k = k + 1
Cells(r, 3) = "The " & k & "° series has " & j & " element/s."
j = 0
End If
End If
Next
End Sub