Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 06-05-2013, 06:18 AM
BobBridges's Avatar
BobBridges BobBridges is offline extract text with formula Windows 7 64bit extract text with formula Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

Yeah, I was talking about the Split function (in VBA) because you specified a macro in the original question. But if you can do it in the worksheet, without writing a macro, I'd use FIND and MID strings, not Split.

I haven't tested Catalin.B's solution, but I did notice it uses LEFT rather than MID. Just for variety's sake, here's my own idea using Excel worksheet functions: I'd do it not in just one column but several, each one simpler, with the helping columns out of the way out at the right. (Some people even hide their helping columns.)

In helping column X: =FIND("/",A1)
In helping column Y: =FIND("/",A1&"/",X1+1)
In helping column Z: =MID(A1,X1+1,Y1-X1-1)
In results column B: =IF(UPPER(Z1)="N","",Z1)

That uses more columns but each piece of it is easier to understand.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert Formula Result to Static Text MYGS Excel 16 01-21-2013 08:18 AM
extract text with formula If formula result is negative then display text oxicottin Excel 3 12-03-2012 02:12 AM
Formula that references cell with text in different workbook no1texan Excel 3 07-17-2012 05:58 AM
Extract numbers from a text string aleale97 Excel 4 02-10-2011 10:33 AM
Extract Photographs The Gap PowerPoint 4 04-22-2010 07:00 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:31 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft