swaink
Active Member
- Joined
- Feb 15, 2002
- Messages
- 432
Hi All
I wonder if you can help me solve my headache
I have been asked to extract the postcode sector from a cell that contains the whole postal address.
In the spreadsheet the address is in Column F seperated by a comma,
In a spare column I have placed a formula which succesfully retrieves the whole of the postcode but I don't want to see the last two characters in the result.
As an example I have used
=RIGHT(F2,LEN(F2)-SEARCH("@",SUBSTITUTE(F2," ","@",LEN(F2)-LEN(SUBSTITUTE(F2," ",""))))) this produces the result of WF61TF
What I now am trying to acheive is that this would reflect WF61 only
Would anyone know how I may tweak this formula to acheive this as I have run out of ideas
All help appreciated
Many thank
Kevin
I wonder if you can help me solve my headache
I have been asked to extract the postcode sector from a cell that contains the whole postal address.
In the spreadsheet the address is in Column F seperated by a comma,
In a spare column I have placed a formula which succesfully retrieves the whole of the postcode but I don't want to see the last two characters in the result.
As an example I have used
=RIGHT(F2,LEN(F2)-SEARCH("@",SUBSTITUTE(F2," ","@",LEN(F2)-LEN(SUBSTITUTE(F2," ",""))))) this produces the result of WF61TF
What I now am trying to acheive is that this would reflect WF61 only
Would anyone know how I may tweak this formula to acheive this as I have run out of ideas
All help appreciated
Many thank
Kevin