Forum Discussion
LucasP40
Jan 02, 2023Copper Contributor
MID and FIND
I need your help. Using just MID and FIND function I need to retrieve just post code e.g 2007 from: 310 Wattle StUltimo, 2007, NSW Thanks Lukasz
mtarler
Jan 03, 2023Silver Contributor
how about
=mid(a1, find(",",a1)+1, find(",",a1,find(",",a1)+1)-find(",",a1)-1)
but using the new formulas would be easier:
=INDEX(TEXTSPLIT(A1,","),2)
=mid(a1, find(",",a1)+1, find(",",a1,find(",",a1)+1)-find(",",a1)-1)
but using the new formulas would be easier:
=INDEX(TEXTSPLIT(A1,","),2)
- LucasP40Jan 03, 2023Copper Contributor
thanks for quick reply.
But I need to use only 1 MID and 1 FIND function to get this result. My closest result is “, 2007” with “=MID(A1,FIND(“, “,A1),6” but can’t get rid off “, “ before 2007.
Any thoughts?
Thanks in advance