• 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.

Extract the data

if it doesnt have to be code you could do this with the LEFT or MID functions..depending where the '22' was located.

if the 6 digit number is inside a string, then you'd need to use MID. if the 6 digit number is only 6 characters long, and you're only wanting the ones that start with '22', you could use the LEFT function (nested with IF).
 
Using Json idea above
In Z2: =IFERROR(MID([@Alors],FIND("22",[@Alors]),6),"not found")

or =IFERROR(MID([@Alors],FIND("22",[@Alors]),6),0)
 
Back
Top