View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Claus Busch Claus Busch is offline
external usenet poster
 
Posts: 3,872
Default Removing Unwanted Data

Hi,

Am Mon, 8 Apr 2013 17:09:54 +0000 schrieb Gabmccormick:

How can I remove unwanted data in a cell and leave only the needed
information? For example below, I only need to keep the last line AJ
and the data behiind it. I want to get rid of everthing else and not by
doig it manually. There is an entire column and like 15K lines with
cells like this.

"NOTE CODE::NOTE DESC::NOTE VALUE::TOLERANCE
SP::SPECIAL: SHIPPED WITH ROD COLLAPSED
SP::SPECIAL: SHIPPED WITH NUT THREADED ON ROD
AG::FINISH SPECS: AS PURCHASED
AA::NUMBER STAMPED ON UNIT::752802::
SP::SPECIAL:::Gabriel Equivalent Kit 141682::
SP::SPECIAL:::ADD Part No. 474774::
FF::FREE FORM NOTE::2000-01 Nissan Maxima/Infiniti I30/I35 FL::
AJ::PRODUCT WEIGHT::12.8 lbs [/b](5.8 kgs)::"


your strings in column A
Then in B1:
=MID(A1,FIND("AJ::",A1),99)

Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2