Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 1
Default Removing Unwanted Data

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)::"
  #2   Report Post  
Posted to microsoft.public.excel.misc
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
  #3   Report Post  
Junior Member
 
Posts: 20
Default

Quote:
Originally Posted by Gabmccormick View Post
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)::"
Possible option is to create a condition in the next column which will create an error

For example, =if(left(xxx, 2) = "AJ", 1, 1/0) -- this will give a div/0! error where this is not equal to AJ. Then highlight the column with the formula and then

Ctrl + G (this gets you to the Go to menu
Then select Special
Then select Formula and untick all except 'Errors'
Hit ok

This will highlight all cells with errors (div/0! s)

Then you can (excel 2007) select home tab on the ribbon and then delete (over on left) and then 'delete entire rows
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing unwanted symbols eg  Simon Lloyd[_1302_] Excel Programming 3 February 8th 10 09:07 AM
Removing unwanted characters Richard Excel Discussion (Misc queries) 2 June 23rd 06 07:34 PM
Removing unwanted data in a column nate2345 Excel Discussion (Misc queries) 1 May 1st 06 05:34 PM
removing unwanted VBAProject daveandjudy Excel Programming 1 November 29th 05 03:06 PM
removing unwanted macros... melchizadek132 Excel Discussion (Misc queries) 1 June 17th 05 01:24 AM


All times are GMT +1. The time now is 11:13 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"