PC Review


Reply
Thread Tools Rate Thread

Copying a Row in a sheet based on criteria in another

 
 
nab
Guest
Posts: n/a
 
      12th Jun 2008
Hi all,

I have 2 workbooks. The first has a list of string names in Column A (about
40 unique). The second has a large sheet of data based on those names from
the first sheet. So each for the 40 names i may have 100 rows of data.
Naturally these names are also in Column A of the second workbook, with the
data from column B onwards.

Basically i would like to do a loop where i look at Column A in the first
workbook starting from A1, taking the activecell value and then going to the
second workbook and copy each row where Column A contains the activecell
value from the first. Then this would be pasted into a 3rd workbook. And
continue this until the 40 names in the first workbook are exhausted.
Thanks
 
Reply With Quote
 
 
 
 
Norman Jones
Guest
Posts: n/a
 
      12th Jun 2008
Hi Nab,

Perhaps you could adapt the techniques
employed by Ron de Bruin at:

Copy records with the same value in a column
to a new sheet or workbook
http://www.rondebruin.nl/copy5.htm




---
Regards.
Norman


"nab" <(E-Mail Removed)> wrote in message
news:25B47973-0F1A-4F3B-BDDF-(E-Mail Removed)...
> Hi all,
>
> I have 2 workbooks. The first has a list of string names in Column A
> (about
> 40 unique). The second has a large sheet of data based on those names from
> the first sheet. So each for the 40 names i may have 100 rows of data.
> Naturally these names are also in Column A of the second workbook, with
> the
> data from column B onwards.
>
> Basically i would like to do a loop where i look at Column A in the first
> workbook starting from A1, taking the activecell value and then going to
> the
> second workbook and copy each row where Column A contains the activecell
> value from the first. Then this would be pasted into a 3rd workbook. And
> continue this until the 40 names in the first workbook are exhausted.
> Thanks


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help: auto-copy entire rows from 1 sheet (based on cell criteria) to another sheet. bertbarndoor Microsoft Excel Programming 4 5th Oct 2007 04:00 PM
Move data to new sheet - rename sheet based on criteria ? Michael.Ray.Pennington@gmail.com Microsoft Excel Misc 7 16th May 2007 10:22 PM
How can I make a sheet display data from another sheet based on date criteria? CW Microsoft Excel Discussion 1 12th May 2007 04:19 PM
Copying line from one sheet to another based on given criteria =?Utf-8?B?VmFsZXJpZQ==?= Microsoft Excel Worksheet Functions 2 2nd Aug 2006 11:02 PM
Excel VBA (?!)-refer to a cell on Sheet to left of X, based on criteria on Sheet X tempjones Microsoft Excel Programming 2 7th Jun 2004 09:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:32 AM.