assuming that the text is in cell "A1" For your first query =LEFT(A1,FIND("FOR",A1,1)-1)
for your second query =RIGHT(A1,LEN(A1)-FIND("PURCHASE",A1,1)-8) Thanks Nishant On Jun 13, 3:12 pm, ankur <ankurpande...@gmail.com> wrote: > Dear Friends > > there is text statement in one COLUMN > for eg > > B1 RAVI IRON LTD FOR PURCHASE BILL NO. 19 DT. 09-04-2008 > B2 K.D.G.P STEEL PVT. LTD. FOR PURCHASE BILL NO. 05 DT. 03-04-2008 > C2 SRI KRISHNA ELECTRICALS FOR PURCHASE BILL NO. 01 DT. 04-04-2008 > D2 GUPTA BUILDING STORE FOR PURCHASE BILL NO. 12 DT. 04-04-2008 > > i want to extract text left to the word " FOR" in new cell > I want to extract text right to the word " bill No" in new cell > > i know the use of RIGHT & LEFT FUNCTION > > is there any formula to search the text in the cell and extract the text > > thanks in advance > > Have A Nice Time & Enjoy Life > > Regards: > CMA Ankur Pandey > (Someone Different) > > I'm not the best but i'm not like the rest~~ --~--~---------~--~----~------------~-------~--~----~ ------------------------------------------------------------------------------------- Some important links for excel users: 1. Excel and VBA Tutorials(Video and Text), Free add-ins downloads at http://www.excelitems.com 2. Excel tutorials at http://www.excel-macros.blogspot.com 3. Learn VBA Macros at http://www.vbamacros.blogspot.com 4. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com If you find any spam message in the group, please send an email to: Ayush Jain @ jainayus...@gmail.com or Ashish Jain @ 26may.1...@gmail.com ------------------------------------------------------------------------------------- -~----------~----~----~----~------~----~------~--~---