• 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 Zip code from column with different condition

udprocks

Member
Dear all,

i just need a help , i want to extract zip codes from a column with different condition , very confused is this possible or not i have attached sample sheet for clear instruction.
 

Attachments

  • extract.xlsx
    8.7 KB · Views: 8
upload_2018-7-25_16-42-43.png

Formula solution

In C2, copied down :

=IFERROR(MID(A2,MATCH(6,FREQUENCY(ROW($1:$99),ISERR(-MID(A2&-10^9,ROW($1:$99),1))*ROW($1:$99)),)-5,5),"")

Regards
Bosco
 

Attachments

  • Extract5Digit.xlsx
    11.4 KB · Views: 4
Back
Top