Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ajay
 
Posts: n/a
Default Find text in cell, copy row to new sheet

Afternoon All,
Had a look in discussions cant find what I am looking for.

Is it possible to use a macro to look for a certain portion of text in this
case "SC"
in a cell and copy the entire row to a new sheet.

Raw data is just over 2000 rows and dont want to copy and paste all
individually.

Have tried sorting the data, but due to other characters in that particular
cell cant get all SC rows together.
TIA
Ajay
  #2   Report Post  
bj
 
Posts: n/a
Default

You could do it in a macro
or
in a helper column
=iserror(find("SC",A1))
copy to the end of the data
use auto filter on this coulumn to find all the "False"
copy these rows and paste into the new worksheet

if you have to do it a lot, write the macro.
If you only have to do it once in a blue moon do it by hand.

"Ajay" wrote:

Afternoon All,
Had a look in discussions cant find what I am looking for.

Is it possible to use a macro to look for a certain portion of text in this
case "SC"
in a cell and copy the entire row to a new sheet.

Raw data is just over 2000 rows and dont want to copy and paste all
individually.

Have tried sorting the data, but due to other characters in that particular
cell cant get all SC rows together.
TIA
Ajay

  #3   Report Post  
Ajay
 
Posts: n/a
Default

Cheers bj
Tried this out and get all TRUE values. Probably doing something wrong.
Examples of values in target cells:
12562/SC
PRISMATICS/12531/SC
VALVES/12521/SC
FAI/SC
I entered =iserror(find("*SC*",E1)) is this incorrect?
It looks as if I will be doing this alot so any help with a macro would be
great
Thanks for your help
ajay

"bj" wrote:

You could do it in a macro
or
in a helper column
=iserror(find("SC",A1))
copy to the end of the data
use auto filter on this coulumn to find all the "False"
copy these rows and paste into the new worksheet

if you have to do it a lot, write the macro.
If you only have to do it once in a blue moon do it by hand.

"Ajay" wrote:

Afternoon All,
Had a look in discussions cant find what I am looking for.

Is it possible to use a macro to look for a certain portion of text in this
case "SC"
in a cell and copy the entire row to a new sheet.

Raw data is just over 2000 rows and dont want to copy and paste all
individually.

Have tried sorting the data, but due to other characters in that particular
cell cant get all SC rows together.
TIA
Ajay

  #4   Report Post  
bj
 
Posts: n/a
Default

Don't use the stars in the formula. it is looking for them

"Ajay" wrote:

Cheers bj
Tried this out and get all TRUE values. Probably doing something wrong.
Examples of values in target cells:
12562/SC
PRISMATICS/12531/SC
VALVES/12521/SC
FAI/SC
I entered =iserror(find("*SC*",E1)) is this incorrect?
It looks as if I will be doing this alot so any help with a macro would be
great
Thanks for your help
ajay

"bj" wrote:

You could do it in a macro
or
in a helper column
=iserror(find("SC",A1))
copy to the end of the data
use auto filter on this coulumn to find all the "False"
copy these rows and paste into the new worksheet

if you have to do it a lot, write the macro.
If you only have to do it once in a blue moon do it by hand.

"Ajay" wrote:

Afternoon All,
Had a look in discussions cant find what I am looking for.

Is it possible to use a macro to look for a certain portion of text in this
case "SC"
in a cell and copy the entire row to a new sheet.

Raw data is just over 2000 rows and dont want to copy and paste all
individually.

Have tried sorting the data, but due to other characters in that particular
cell cant get all SC rows together.
TIA
Ajay

  #5   Report Post  
Ajay
 
Posts: n/a
Default

Knew it would be simple thanks for your help bj
Ajay

"bj" wrote:

Don't use the stars in the formula. it is looking for them

"Ajay" wrote:

Cheers bj
Tried this out and get all TRUE values. Probably doing something wrong.
Examples of values in target cells:
12562/SC
PRISMATICS/12531/SC
VALVES/12521/SC
FAI/SC
I entered =iserror(find("*SC*",E1)) is this incorrect?
It looks as if I will be doing this alot so any help with a macro would be
great
Thanks for your help
ajay

"bj" wrote:

You could do it in a macro
or
in a helper column
=iserror(find("SC",A1))
copy to the end of the data
use auto filter on this coulumn to find all the "False"
copy these rows and paste into the new worksheet

if you have to do it a lot, write the macro.
If you only have to do it once in a blue moon do it by hand.

"Ajay" wrote:

Afternoon All,
Had a look in discussions cant find what I am looking for.

Is it possible to use a macro to look for a certain portion of text in this
case "SC"
in a cell and copy the entire row to a new sheet.

Raw data is just over 2000 rows and dont want to copy and paste all
individually.

Have tried sorting the data, but due to other characters in that particular
cell cant get all SC rows together.
TIA
Ajay



  #6   Report Post  
Dave Peterson
 
Posts: n/a
Default

Another option...

Data|Filter|Autofilter
Filter on that column
Custom
contains SC

Copy the visible cells to the new location.

Ajay wrote:

Afternoon All,
Had a look in discussions cant find what I am looking for.

Is it possible to use a macro to look for a certain portion of text in this
case "SC"
in a cell and copy the entire row to a new sheet.

Raw data is just over 2000 rows and dont want to copy and paste all
individually.

Have tried sorting the data, but due to other characters in that particular
cell cant get all SC rows together.
TIA
Ajay


--

Dave Peterson
  #7   Report Post  
Ajay
 
Posts: n/a
Default

Thanks Dave one to remember for the future
Easy when you know how!
Thanks again
ajay



"Dave Peterson" wrote:

Another option...

Data|Filter|Autofilter
Filter on that column
Custom
contains SC

Copy the visible cells to the new location.

Ajay wrote:

Afternoon All,
Had a look in discussions cant find what I am looking for.

Is it possible to use a macro to look for a certain portion of text in this
case "SC"
in a cell and copy the entire row to a new sheet.

Raw data is just over 2000 rows and dont want to copy and paste all
individually.

Have tried sorting the data, but due to other characters in that particular
cell cant get all SC rows together.
TIA
Ajay


--

Dave Peterson

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
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
Questions on copying from one sheet to the other and coping every other cell. KatyLady Excel Discussion (Misc queries) 10 June 7th 05 08:29 AM
How do I find the cell address of the 2nd largest of a set? Mr. Snrub Excel Discussion (Misc queries) 4 May 30th 05 12:53 PM
Copy text from same cell on every sheet to title sheet? Jon Excel Discussion (Misc queries) 2 February 9th 05 03:11 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


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

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

About Us

"It's about Microsoft Excel"