• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Bank Reference Number

Shabbo

Member
Dear Sir,
I wanted to put after first – and before end of first – in column H
Data is large I can’t put all, but I wanted get data in column H after first - Number-
Please note that length different for all reference number so I cant use length formula.
 

Attachments

  • Bank Reference Number.xlsx
    8 KB · Views: 10
There are few ways to accomplish this.

1. Using FILTERXML
=FILTERXML("<A><B>"&SUBSTITUTE(C3,"-","</B><B>")&"</B></A>","//A/B[2]")

2. Using Substitute & Rept
=TRIM(MID(SUBSTITUTE(C3,"-",REPT(" ",99)),99,99))

There are more, but above 2 are probably the easiest.
 
Back
Top