Andrew Fergus
MrExcel MVP
- Joined
- Sep 9, 2004
- Messages
- 5,462
- Office Version
- 365
- 2021
- 2016
- Platform
- Windows
Hi
I believe formulas using the '<' and '>' without spaces around them are being truncated.
Whilst this can be easily resolved by inserting spaces into your formulas (using code tags doesn't seem to make any difference) unfortunately I think it has destroyed the meaning of a number of old posts.
Take for instance this gem from hady :
http://www.mrexcel.com/forum/showpost.php?p=1107631&postcount=14
That was not the original formula and the solution is now useless to others. For instance, if you try entering the formula I used in this thread as you would normally, it would appear like this:
=IF(IF(ISERROR(LEN(C2)),0,LEN(C2))< LEN(B2)*2,MID(B2,LEN(B2)-IF(ISERROR(LEN(C2)),0,LEN(C2)/2),1)&"."&IF(ISERROR(C2),"",C2),C2)
Andrew
I believe formulas using the '<' and '>' without spaces around them are being truncated.
Whilst this can be easily resolved by inserting spaces into your formulas (using code tags doesn't seem to make any difference) unfortunately I think it has destroyed the meaning of a number of old posts.
Take for instance this gem from hady :
http://www.mrexcel.com/forum/showpost.php?p=1107631&postcount=14
That was not the original formula and the solution is now useless to others. For instance, if you try entering the formula I used in this thread as you would normally, it would appear like this:
=IF(IF(ISERROR(LEN(C2)),0,LEN(C2))< LEN(B2)*2,MID(B2,LEN(B2)-IF(ISERROR(LEN(C2)),0,LEN(C2)/2),1)&"."&IF(ISERROR(C2),"",C2),C2)
Code:
=IF(IF(ISERROR(LEN(C2)),0,LEN(C2))< LEN(B2)*2,MID(B2,LEN(B2)-IF(ISERROR(LEN(C2)),0,LEN(C2)/2),1)&"."&IF(ISERROR(C2),"",C2),C2)