Thank you for this. However, it doesn't seem to.work. What am I doing wrong?I get no result at all. I think I might be doing something wrong.
15 | =IF(RIGHT(RC[-1], 1) = "5", R[-1]C[-1], "Nothing") |
6 | |
15 | |
7 | |
14 | |
15 | |
5 | |
6 | |
8 | |
3 | |
1 | |
5 |
I get no result at all. I think I might be doing something wrong.
Also, enabled R1C1 Reference Style, under Options/FormulasView attachment 119909
Thanks for the input. I tried, as above, no result, system message displays.
Column is Number format, not sure what else to check.
View attachment 119912
I did that, no difference.I assume that your formulae go into Column B. The cells should not be formatted as text wherever the formulae go.
Format Column B as "General" and type in the formula in B2.
Copied and pastedHow are the values in Column A entered?
Sub Count_Characters()
Dim i As Long
For i = 1 To Cells(Rows.Count, 1).End(xlUp).Row
MsgBox "Cell " & Cells(i, 1).Address(0, 0) & " has " & Len(Cells(i, 1)) & " characters!" & vbLf & _
Asc(Right(Cells(i, 1).Value, 1)) & " (This should be 53 if the last characters is a 5!)"
Next i
End Sub