#1   Report Post  
koba
 
Posts: n/a
Default Filtering Data


Dear All

I have a problem could somebody please help?

I have a list of data and I would like to filter it buy removing the
first 4 characters


DHK-6000
DHK-6000.
DHK-6000HD
DHK-6000HDB
SZK-6001
SZK-6001.
RVK-6002
RVK-6002.

To make it look like this
6000
6000.
6000HD
6000HDB
6001
6001.
6002
6002.

As I have thousands of these I do not want to do this manually

Also once I have done this how do I filter the data so that it does not
display any data containing a B.

Answers to either question would be much appreciated.

Thanks

Andrew


--
koba
------------------------------------------------------------------------
koba's Profile: http://www.excelforum.com/member.php...o&userid=28639
View this thread: http://www.excelforum.com/showthread...hreadid=483692

  #2   Report Post  
Paul Sheppard
 
Posts: n/a
Default Filtering Data


koba Wrote:
Dear All

I have a problem could somebody please help?

I have a list of data and I would like to filter it buy removing the
first 4 characters


DHK-6000
DHK-6000.
DHK-6000HD
DHK-6000HDB
SZK-6001
SZK-6001.
RVK-6002
RVK-6002.

To make it look like this
6000
6000.
6000HD
6000HDB
6001
6001.
6002
6002.

As I have thousands of these I do not want to do this manually

Also once I have done this how do I filter the data so that it does not
display any data containing a B.

Answers to either question would be much appreciated.

Thanks

Andrew


Hi Andrew

To get rid of the four right hand characters, and assuming your data to
be in column A, in Column B put this formula,
=MID(A12,(SEARCH("-",A12)+1),7), where the last 7 is the maximum number
of characters in any cell in column A

To filter out those that contain be, do a custom filter, select does
not contain and put B in the adjacent box


--
Paul Sheppard


------------------------------------------------------------------------
Paul Sheppard's Profile: http://www.excelforum.com/member.php...o&userid=24783
View this thread: http://www.excelforum.com/showthread...hreadid=483692

  #3   Report Post  
koba
 
Posts: n/a
Default Filtering Data


Found another way as well

=LEFT(A2, LEN(A2)-2) Removes last two characters from contents of A2
=RIGHT(A3, LEN(A3)-8) Removes first 8 characters from A3

Thank heaps

go team


--
koba
------------------------------------------------------------------------
koba's Profile: http://www.excelforum.com/member.php...o&userid=28639
View this thread: http://www.excelforum.com/showthread...hreadid=483692

  #4   Report Post  
Ray A
 
Posts: n/a
Default Filtering Data

one way:
=mid(a1,find("-",a1)+1, 256)
HTH

"koba" wrote:


Dear All

I have a problem could somebody please help?

I have a list of data and I would like to filter it buy removing the
first 4 characters


DHK-6000
DHK-6000.
DHK-6000HD
DHK-6000HDB
SZK-6001
SZK-6001.
RVK-6002
RVK-6002.

To make it look like this
6000
6000.
6000HD
6000HDB
6001
6001.
6002
6002.

As I have thousands of these I do not want to do this manually

Also once I have done this how do I filter the data so that it does not
display any data containing a B.

Answers to either question would be much appreciated.

Thanks

Andrew


--
koba
------------------------------------------------------------------------
koba's Profile: http://www.excelforum.com/member.php...o&userid=28639
View this thread: http://www.excelforum.com/showthread...hreadid=483692


  #5   Report Post  
bpeltzer
 
Posts: n/a
Default Filtering Data

If your data is in column A, starting in row 1, then in B2 enter the formula
=right(a2,len(a2)-4. Autofill that formula down through the entire column.
If you only want to keep that trimmed value, you can copy/paste special
values, then delete column A.
Once that's done, click a single cell in your table and go to Data Filter
Autofilter. Select the drop-down in the column with the trimmed data and

choose 'Custom'. Use the first drop-down in that dialog to select 'Does Not
Contain' and type B in the top-right text box. Hit OK.

"koba" wrote:


Dear All

I have a problem could somebody please help?

I have a list of data and I would like to filter it buy removing the
first 4 characters


DHK-6000
DHK-6000.
DHK-6000HD
DHK-6000HDB
SZK-6001
SZK-6001.
RVK-6002
RVK-6002.

To make it look like this
6000
6000.
6000HD
6000HDB
6001
6001.
6002
6002.

As I have thousands of these I do not want to do this manually

Also once I have done this how do I filter the data so that it does not
display any data containing a B.

Answers to either question would be much appreciated.

Thanks

Andrew


--
koba
------------------------------------------------------------------------
koba's Profile: http://www.excelforum.com/member.php...o&userid=28639
View this thread: http://www.excelforum.com/showthread...hreadid=483692




  #6   Report Post  
R.VENKATARAMAN
 
Posts: n/a
Default Filtering Data

sorry one other way ( i hope too many solutions do not confuse)
=MID(A1,5,LEN(A1))
copy this down.





"bpeltzer" wrote in message
...
If your data is in column A, starting in row 1, then in B2 enter the

formula
=right(a2,len(a2)-4. Autofill that formula down through the entire

column.
If you only want to keep that trimmed value, you can copy/paste special
values, then delete column A.
Once that's done, click a single cell in your table and go to Data

Filter
Autofilter. Select the drop-down in the column with the trimmed data

and
choose 'Custom'. Use the first drop-down in that dialog to select 'Does

Not
Contain' and type B in the top-right text box. Hit OK.

"koba" wrote:


Dear All

I have a problem could somebody please help?

I have a list of data and I would like to filter it buy removing the
first 4 characters


DHK-6000
DHK-6000.
DHK-6000HD
DHK-6000HDB
SZK-6001
SZK-6001.
RVK-6002
RVK-6002.

To make it look like this
6000
6000.
6000HD
6000HDB
6001
6001.
6002
6002.

As I have thousands of these I do not want to do this manually

Also once I have done this how do I filter the data so that it does not
display any data containing a "B".

Answers to either question would be much appreciated.

Thanks

Andrew


--
koba
------------------------------------------------------------------------
koba's Profile:

http://www.excelforum.com/member.php...o&userid=28639
View this thread:

http://www.excelforum.com/showthread...hreadid=483692




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
Matching data in tables - Filtering Jo Davis Excel Discussion (Misc queries) 2 September 28th 05 04:02 PM
Filtering Columns to Align Matching Data Casino Guy Excel Worksheet Functions 4 September 15th 05 04:47 AM
Printing data validation scenarios SJC Excel Worksheet Functions 14 July 24th 05 12:43 AM
Filtering out Data Jo Davis Excel Discussion (Misc queries) 1 July 7th 05 11:34 AM
Filtering data in Excel for mailmerge to Word Jane Shaffer Excel Discussion (Misc queries) 1 November 28th 04 06:05 PM


All times are GMT +1. The time now is 02:35 AM.

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"