Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
mg_sv_r
 
Posts: n/a
Default Deleting rows from a worksheet automatically

Hi,

I have a spreadsheet that looks something like this

A B C
D E F

5222875270 8 HNLSFOORDMAN G7849NA UK XGA
5222897579 8 HNLSFODENMAN G7899NA UK XGB
5222897581 8 HNLSFOORDMAN G7899NA UK XGB
5256311073 9 IADJFKEWRCHIMAN H5825CS UK XGA
5256311075 9 IADJFKEWRORDMAN H5825CS UK XGA
5256311077 9 IADJFKEWRJFKMAN H5825CS UK XGA
5253439823 7 IADORDMAN Q5927TX UK XGB
5253439825 7 IADORDMAN Q5927TX UK XGB

Only mine is about 40,000 rows! Now I want to strip out of that worksheet
any rows where column C does not contain the letters ORD anywhere in the
string. Is there a way of doing this without manually going through it? I
just need the rows deleted, they do not need keeping for any purpose.

Thanks in advance for any help.

John

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Larry S
 
Posts: n/a
Default Deleting rows from a worksheet automatically

One approach would be to use in unused column with the formula:
=IF(ISERROR(FIND("ord",C2)),"Not Found","")

as this will evaulate the string C2, if it finds "ORD" anywhere, the result
will be null "", if it doesn't find it the result will be "Not Found". Next,
sort the data by this temporary column and then delete all the rows with
"Not Found" listed in that column.


"mg_sv_r" wrote in message
...
Hi,

I have a spreadsheet that looks something like this

A B C
D E F

5222875270 8 HNLSFOORDMAN G7849NA UK XGA
5222897579 8 HNLSFODENMAN G7899NA UK XGB
5222897581 8 HNLSFOORDMAN G7899NA UK XGB
5256311073 9 IADJFKEWRCHIMAN H5825CS UK XGA
5256311075 9 IADJFKEWRORDMAN H5825CS UK XGA
5256311077 9 IADJFKEWRJFKMAN H5825CS UK XGA
5253439823 7 IADORDMAN Q5927TX UK XGB
5253439825 7 IADORDMAN Q5927TX UK XGB

Only mine is about 40,000 rows! Now I want to strip out of that worksheet
any rows where column C does not contain the letters ORD anywhere in the
string. Is there a way of doing this without manually going through it? I
just need the rows deleted, they do not need keeping for any purpose.

Thanks in advance for any help.

John


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Miguel Zapico
 
Posts: n/a
Default Deleting rows from a worksheet automatically

You may use a formula like this in an additional column (G, for example)
=ISNUMBER(FIND("ORD",C1))
Then copy the formula all along the range, sort on that column and delete
all the rows that have FALSE on it.

Hope this helps,
Miguel.

"mg_sv_r" wrote:

Hi,

I have a spreadsheet that looks something like this

A B C
D E F

5222875270 8 HNLSFOORDMAN G7849NA UK XGA
5222897579 8 HNLSFODENMAN G7899NA UK XGB
5222897581 8 HNLSFOORDMAN G7899NA UK XGB
5256311073 9 IADJFKEWRCHIMAN H5825CS UK XGA
5256311075 9 IADJFKEWRORDMAN H5825CS UK XGA
5256311077 9 IADJFKEWRJFKMAN H5825CS UK XGA
5253439823 7 IADORDMAN Q5927TX UK XGB
5253439825 7 IADORDMAN Q5927TX UK XGB

Only mine is about 40,000 rows! Now I want to strip out of that worksheet
any rows where column C does not contain the letters ORD anywhere in the
string. Is there a way of doing this without manually going through it? I
just need the rows deleted, they do not need keeping for any purpose.

Thanks in advance for any help.

John

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
Worksheet protection with grouped rows? pmw5 Excel Worksheet Functions 7 July 17th 07 04:49 PM
Find duplicate rows then deleting them SSHO_99 Excel Worksheet Functions 4 May 4th 07 11:17 AM
How do I reduce number of Rows displayed in Excel worksheet? JerryRugs Setting up and Configuration of Excel 1 November 15th 05 07:55 PM
How do I add rows to a completed worksheet? skeener Excel Worksheet Functions 0 January 5th 05 04:43 PM
Display selected rows from one worksheet to another Brian Excel Worksheet Functions 5 October 29th 04 12:26 PM


All times are GMT +1. The time now is 08:28 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"