C
caveman.savant
I have text in column A that I want to Normalize. Some of the text
contains an "O" in the 2nd position. Also some of the strings have a
Space that need to be replaced with a "-". Some, but not all have
both.
(currently)
VSTYSO67-T
VSTYS077 Y
VSTYSO67 Z
(corrected to)
VSTYS067-T
VSTYS077-Y
VSTYS067-Z
To change the "O" to "0", I use
=IF(ISNUMBER(FIND("O",TRIM(MID(email28806!A2,5,LEN(email28806!
A2))))),REPLACE(email28806!A2,FIND("O",email28806!A2),1,"0"),"")
To change the " " to "-", I use
=IF(ISNUMBER(FIND(" ",TRIM(MID(email28806!A2,5,LEN(email28806!
A2))))),REPLACE(email28806!A2,FIND(" ",email28806!A2),1,"-"),"")
how can I combine these two statements?
contains an "O" in the 2nd position. Also some of the strings have a
Space that need to be replaced with a "-". Some, but not all have
both.
(currently)
VSTYSO67-T
VSTYS077 Y
VSTYSO67 Z
(corrected to)
VSTYS067-T
VSTYS077-Y
VSTYS067-Z
To change the "O" to "0", I use
=IF(ISNUMBER(FIND("O",TRIM(MID(email28806!A2,5,LEN(email28806!
A2))))),REPLACE(email28806!A2,FIND("O",email28806!A2),1,"0"),"")
To change the " " to "-", I use
=IF(ISNUMBER(FIND(" ",TRIM(MID(email28806!A2,5,LEN(email28806!
A2))))),REPLACE(email28806!A2,FIND(" ",email28806!A2),1,"-"),"")
how can I combine these two statements?