Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Excel formula to replace first occurrence of a character

I am new to excel, I have a data of 1000 rows with each row looks like 435362|A|B|C I want a formula in excel which modifies each rows so that the data looks like 435362,A|B|C i.e. it should replace first occurrence of | with comma(,).

like image 358
rampuriyaaa Avatar asked Oct 22 '25 17:10

rampuriyaaa


1 Answers

One more option: (with data in A1):

=SUBSTITUTE(A1,"|",",",1)

You can't replace existing data with forrmula, so you need to create another column. You can then cut and paste as values to replace existing data.

like image 87
BrakNicku Avatar answered Oct 25 '25 08:10

BrakNicku