I copied this date "05/10/2020" from this thread. When trying to manipulate it, I found it behaving weirdly as its length is 11 and RIGHT(A1,4) returns "020" when it should return four characters. Furthermore, LEFT(A1,10), though looks on screen exactly like A1, is not the same as A1 as =LEFT(A1,10)=A1 returns FALSE. That leads me to suspect the string contains a non-printable character at the end. Yet, CLEAN() doesn't remove the non-printable character as LEN(CLEAN(TRIM(A1))) still returns 11. The function CLEAN() is supposed to remove non-printable characters and I have used it to do so. Now, it doesn't seem to be dependable. It seems from now on I'll need to double-check the result whenever I use CLEAN().
Cell Formulas | ||
---|---|---|
Range | Formula | |
B1 | B1 | =RIGHT(A1,4) |
C1 | C1 | =RIGHT(A1)*1 |
D1:N1 | D1 | ="""" & MID($A$1,COLUMN()-3,1) & """" |
B2 | B2 | =RIGHT(A1,5) |
C2 | C2 | =LEN(A1) |
B3 | B3 | =RIGHT(A1,6) |
C3 | C3 | =LEN(CLEAN(TRIM(A1))) |