Ok, thanks, I will try it.Did you try Post #11
Physically count the visible characters and somewhere where you are sure you can enter a formula the "Len" formula.
If you want to, you can check with a macro also.
Code: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
It looks like your cells are not formatted the way they should be. The formula shows as text.
Hi there, here goes. Entered it is B2Ok, thanks, I will try it.
However, as is, I am getting a system message that the formula is incorrect? #14
=IF(RIGHT(RC[-1],1)="5",R[-1]C[-1],"Nothing")
Works just fine for me:
View attachment 119979
Formula in cell B2 (and copied down for all rows).
Excel Formula:=IF(RIGHT(RC[-1],1)="5",R[-1]C[-1],"Nothing")
I don't see how you could get the results you are showing.
How is column B formatted?
Is it formatted as "General"? YES
And do you have any VBA in this workbook? NO
If you set up your simple example from post 22 above in a brand new Excel workbook, and add the formula shown in post 23, what do those results look like?
Column 2 takes formulae as well, the Len fn was there first and i just inserted a new column to include the IF fn.So the third column takes formulae.
Select Column 3 and right click. Click on "Copy"
Now select Column 2, right click, select "Paste Special" and click on the "Format" radio button to select it. Click on OK.
Does that make Column2 accept formulae?
If not, use "DropBox" or a similar site to upload your workbook into so someone can have a look at it.
Make sure that personal data is changed before doing that.
Thanks for your suggestion, but also doesn't work. This must be something to do with the Excel I have, for some reason it doesn't take these formulae.try
=IF(RIGHT(TRIM(A2),1)="5",A1,"")