I have an excel file with data where I want a Split cell with a delimiter and if the delimiter is not found then copy that cell value to another cell
e.g.
ABC Ltd.
ABC Ltd. - Ind
PQR Ltd. - USA
LMN Corp.
Output - delimiter "-"
ColumnA ColumnB
ABC Ltd. ABC Ltd.
ABC Ltd. Ind
PQR Ltd. USA
LMN Corp. LMN Corp.
However, I'm using below formula but not getting what I want.
=TRIM(LEFT(B2,FIND("-",B2)-1))
=TRIM(REPLACE(B2,1,FIND("-",B2),""))