len user defined function
Posted by Richard on November 23, 2001 12:59 AM
Hi
I am trying to write a userdefined function (if that is the right way to go about it) that will concatenate a zero to a cell if the cell is 11 characters long.
The formula i use at the moment (then pastespecial value) is:
=IF(LEN(G2)=11,CONCATENATE(0,G2),G2)
where G2 is the original string
thanks