Forum Discussion
kyrillkaz
Apr 07, 2021Copper Contributor
IF with two REPLACE statements to move character in string
Hi, I have a 40 character-long string in which I want to check if there is a C on the 23rd position and if so, move that C to the 37th position. Right now, I'm trying to do it with the following ...
Detlef_Lewin
Apr 07, 2021Silver Contributor
=IF(MID(B8,23,1)="C",REPLACE(REPLACE(B8,23,1,""),37,0,"C"),B8)