Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / November 2006

Tip: Looking for answers? Try searching our database.

Selecting Text Between Commas in Excel

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Brian - 28 Nov 2006 14:56 GMT
Hello everybody,

I have data in an excel cell setup as follows:
unimportantData, dataToBeExtracted, unimportantData2, unimportantData3

I would like to extract the information "dataToBeExtracted", and had
considered using the MID function.  However, the string length of
dataToBeExtracted is different for each row.  Is there a way to get
Excel to read all data after the first comma, but before the second
(without a bunch of IF((MID,#,#)=",")'s that is (unless that's the best
way!))?

Thanks in advance for your help.  Have a great day!
Brian
Don Guillett - 28 Nov 2006 15:07 GMT
You can use that or data>text to columns>or a macro using instr

Signature

Don Guillett
SalesAid Software
dguillett1@austin.rr.com

> Hello everybody,
>
[quoted text clipped - 10 lines]
> Thanks in advance for your help.  Have a great day!
> Brian
Brian - 28 Nov 2006 15:34 GMT
That's fantastic!  Thanks so much Don.

Cheers,
Brian

> You can use that or data>text to columns>or a macro using instr
>
[quoted text clipped - 16 lines]
> > Thanks in advance for your help.  Have a great day!
> > Brian
JE McGimpsey - 28 Nov 2006 15:52 GMT
One way:

   =MID(LEFT(A1,FIND("#",SUBSTITUTE(A1,",","#",2))-1), FIND(",",A1)+1,
255)

where 255 is just a large enough number to contain the data.

> Hello everybody,
>
[quoted text clipped - 10 lines]
> Thanks in advance for your help.  Have a great day!
> Brian
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.