Working on a 2016 version excel file where i need to copy only the specific characters which contains _ or - from a column and paste the related data into another column.
If any of the row contains "|" then remove everything after this symbol.
Input Data:
col1 col2
Disconnected on B_NKLA_TUV_0022 As Per
Roll DCN-BVLR-OCR-NKLT | Flapping
VAAP CLR_ NLTK_BKC_ASSO CBR Thing
VCR-DCW- NKL-NKJ-MLP | CBR-XDL-BHG
Disconnected on B_NFA_SUV_0025 As
Steps: First we need to remove all the character after "|" from col1 Then Exctract characters containing "" OR "-", If there is any space between 2 sentance containing "" OR "-", We need to combibne it and paste into col2
Output Data:
col1 col2
Disconnected on B_NKLA_TUV_0022 As Per B_NKLA_TUV_0022
Roll DCN-BVLR-OCR-NKLT | Flapping DCN-BVLR-OCR-NKLT
VAAP CLR_ NLTK_BKC_ASSO CBR Thing CLR_ NLTK_BKC_ASSO
Disconnected on 23 Dec 2022
VCR-DCW- NKL-NKJ-MLP | CBR-XDL-BHG VCR-DCW- NKL-NKJ-MLP
Disconnected on B_NFA_SUV_0025 As B_NFA_SUV_0025
Need Suggestion on it.