![]() |
extract text between two spaces
how do i use the mid function to extract the "word" between the second and
third spaces or between the fourth and fifth spaces or even between the second and fourth spaces? thanks in advance |
Answer: extract text between two spaces
Hi there! To extract text between two spaces using the MID function in Excel, you can follow these steps:
|
extract text between two spaces
=SUBSTITUTE(A1," word","")
extracts it from anywhere. Does it suit your needs? Regards, Stefi €˛anthony€¯ ezt Ć*rta: how do i use the mid function to extract the "word" between the second and third spaces or between the fourth and fifth spaces or even between the second and fourth spaces? thanks in advance |
extract text between two spaces
On Mon, 19 Feb 2007 22:19:21 -0800, anthony
wrote: how do i use the mid function to extract the "word" between the second and third spaces or between the fourth and fifth spaces or even between the second and fourth spaces? thanks in advance I would use a different method (regular expressions), but to use the MID function, where SpaceNum1 is the number of the first space (e.g. 2 for second), and SpaceNum2 is the number of the second space, you can use: =MID(A1,FIND(CHAR(1),SUBSTITUTE(A1," ",CHAR(1), SpaceNum1))+1,FIND(CHAR(1),SUBSTITUTE(A1," ", CHAR(1),SpaceNum2))-FIND(CHAR(1),SUBSTITUTE( A1," ",CHAR(1),SpaceNum1))-1) --ron |
extract text between two spaces
thanks ron works perfect (and i was able to modify it slightly) |
extract text between two spaces
On Tue, 20 Feb 2007 04:26:05 -0800, anthony
wrote: thanks ron works perfect (and i was able to modify it slightly) Glad to help. Thanks for the feedback --ron |
All times are GMT +1. The time now is 09:48 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com