PC Review


Reply
Thread Tools Rate Thread

Copy Specific Data

 
 
Chersie
Guest
Posts: n/a
 
      31st May 2008
I have one worksheet named "Data" that is basically a database of information
for up to 20 representatives. Each representative may be named several times
throughout the worksheet in column B.

I need a macro that will copy any row with Representative #1's name and all
the information in that row to a worksheet that has been named for that
specific representative, adding each additional row below the first with no
blank rows.

I need to do the same for Representative #2, and so on. There may or may
not be 20 representatives at any given time and so I don't want a specified
number of sheets/representatives to be designated.

I want to do the same thing copying data that was entered for a certain
month (the date field is column A) to a worksheet that has been named Jan08,
Feb08, Mar08, etc.

Ultimately, I want any data for a specific representative to be copied to a
sheet named for that representative and any data entered in a specific month
to be copied to a sheet named for that month.

I hope that makes sense.

Thank you so much in advance!
 
Reply With Quote
 
 
 
 
Norman Jones
Guest
Posts: n/a
 
      31st May 2008
Hi Chersie,

The first port of call for operations involving
filtering or copying data between worksheets
should be Ron de Bruin's estimable site:

http://www.rondebruin.nl/

More particularly, for your requirement,
see Rons code at:

Create a new sheet for all Unique values or
paste it below the existing data if the sheet exists
http://www.rondebruin.nl/copy5.htm#Add



---
Regards.
Norman


"Chersie" <(E-Mail Removed)> wrote in message
newsAA5B595-9430-4E32-8440-(E-Mail Removed)...
>I have one worksheet named "Data" that is basically a database of
>information
> for up to 20 representatives. Each representative may be named several
> times
> throughout the worksheet in column B.
>
> I need a macro that will copy any row with Representative #1's name and
> all
> the information in that row to a worksheet that has been named for that
> specific representative, adding each additional row below the first with
> no
> blank rows.
>
> I need to do the same for Representative #2, and so on. There may or may
> not be 20 representatives at any given time and so I don't want a
> specified
> number of sheets/representatives to be designated.
>
> I want to do the same thing copying data that was entered for a certain
> month (the date field is column A) to a worksheet that has been named
> Jan08,
> Feb08, Mar08, etc.
>
> Ultimately, I want any data for a specific representative to be copied to
> a
> sheet named for that representative and any data entered in a specific
> month
> to be copied to a sheet named for that month.
>
> I hope that makes sense.
>
> Thank you so much in advance!


 
Reply With Quote
 
Chersie
Guest
Posts: n/a
 
      31st May 2008
Hi Norman,

Thank you for your response. I am working at setting this up and I think it
will work just fine for most of my situation.

I am not sure however how to get it to work for my months of Jan08, Feb08,
etc. The reason being is that column A will have dates such as 1/17/08,
etc., and not the worksheet tab name. I need something that will say, if the
date in column A is within the month of January, copy that row's data to the
worksheet named Jan08, and on and on. I hope this makes sense and you can
assist me with this!

Thanks again,

"Norman Jones" wrote:

> Hi Chersie,
>
> The first port of call for operations involving
> filtering or copying data between worksheets
> should be Ron de Bruin's estimable site:
>
> http://www.rondebruin.nl/
>
> More particularly, for your requirement,
> see Rons code at:
>
> Create a new sheet for all Unique values or
> paste it below the existing data if the sheet exists
> http://www.rondebruin.nl/copy5.htm#Add
>
>
>
> ---
> Regards.
> Norman
>
>
> "Chersie" <(E-Mail Removed)> wrote in message
> newsAA5B595-9430-4E32-8440-(E-Mail Removed)...
> >I have one worksheet named "Data" that is basically a database of
> >information
> > for up to 20 representatives. Each representative may be named several
> > times
> > throughout the worksheet in column B.
> >
> > I need a macro that will copy any row with Representative #1's name and
> > all
> > the information in that row to a worksheet that has been named for that
> > specific representative, adding each additional row below the first with
> > no
> > blank rows.
> >
> > I need to do the same for Representative #2, and so on. There may or may
> > not be 20 representatives at any given time and so I don't want a
> > specified
> > number of sheets/representatives to be designated.
> >
> > I want to do the same thing copying data that was entered for a certain
> > month (the date field is column A) to a worksheet that has been named
> > Jan08,
> > Feb08, Mar08, etc.
> >
> > Ultimately, I want any data for a specific representative to be copied to
> > a
> > sheet named for that representative and any data entered in a specific
> > month
> > to be copied to a sheet named for that month.
> >
> > I hope that makes sense.
> >
> > Thank you so much in advance!

>
>

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      31st May 2008
Autofilter for Jan and copy >autofilter for feb and copy ,etc
OR
use a for/each loop if not too big

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Chersie" <(E-Mail Removed)> wrote in message
news:C094B2DB-7E94-4284-A0F0-(E-Mail Removed)...
> Hi Norman,
>
> Thank you for your response. I am working at setting this up and I think
> it
> will work just fine for most of my situation.
>
> I am not sure however how to get it to work for my months of Jan08, Feb08,
> etc. The reason being is that column A will have dates such as 1/17/08,
> etc., and not the worksheet tab name. I need something that will say, if
> the
> date in column A is within the month of January, copy that row's data to
> the
> worksheet named Jan08, and on and on. I hope this makes sense and you can
> assist me with this!
>
> Thanks again,
>
> "Norman Jones" wrote:
>
>> Hi Chersie,
>>
>> The first port of call for operations involving
>> filtering or copying data between worksheets
>> should be Ron de Bruin's estimable site:
>>
>> http://www.rondebruin.nl/
>>
>> More particularly, for your requirement,
>> see Rons code at:
>>
>> Create a new sheet for all Unique values or
>> paste it below the existing data if the sheet exists
>> http://www.rondebruin.nl/copy5.htm#Add
>>
>>
>>
>> ---
>> Regards.
>> Norman
>>
>>
>> "Chersie" <(E-Mail Removed)> wrote in message
>> newsAA5B595-9430-4E32-8440-(E-Mail Removed)...
>> >I have one worksheet named "Data" that is basically a database of
>> >information
>> > for up to 20 representatives. Each representative may be named several
>> > times
>> > throughout the worksheet in column B.
>> >
>> > I need a macro that will copy any row with Representative #1's name and
>> > all
>> > the information in that row to a worksheet that has been named for that
>> > specific representative, adding each additional row below the first
>> > with
>> > no
>> > blank rows.
>> >
>> > I need to do the same for Representative #2, and so on. There may or
>> > may
>> > not be 20 representatives at any given time and so I don't want a
>> > specified
>> > number of sheets/representatives to be designated.
>> >
>> > I want to do the same thing copying data that was entered for a certain
>> > month (the date field is column A) to a worksheet that has been named
>> > Jan08,
>> > Feb08, Mar08, etc.
>> >
>> > Ultimately, I want any data for a specific representative to be copied
>> > to
>> > a
>> > sheet named for that representative and any data entered in a specific
>> > month
>> > to be copied to a sheet named for that month.
>> >
>> > I hope that makes sense.
>> >
>> > Thank you so much in advance!

>>
>>


 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      1st Jun 2008
You can use this add-in to filter on month/year
http://www.rondebruin.nl/easyfilter.htm

Or add a helper column in your data

=TEXT(MONTH(A1),"mmm")& YEAR(A1)

You can filter on that column then



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Chersie" <(E-Mail Removed)> wrote in message news:C094B2DB-7E94-4284-A0F0-(E-Mail Removed)...
> Hi Norman,
>
> Thank you for your response. I am working at setting this up and I think it
> will work just fine for most of my situation.
>
> I am not sure however how to get it to work for my months of Jan08, Feb08,
> etc. The reason being is that column A will have dates such as 1/17/08,
> etc., and not the worksheet tab name. I need something that will say, if the
> date in column A is within the month of January, copy that row's data to the
> worksheet named Jan08, and on and on. I hope this makes sense and you can
> assist me with this!
>
> Thanks again,
>
> "Norman Jones" wrote:
>
>> Hi Chersie,
>>
>> The first port of call for operations involving
>> filtering or copying data between worksheets
>> should be Ron de Bruin's estimable site:
>>
>> http://www.rondebruin.nl/
>>
>> More particularly, for your requirement,
>> see Rons code at:
>>
>> Create a new sheet for all Unique values or
>> paste it below the existing data if the sheet exists
>> http://www.rondebruin.nl/copy5.htm#Add
>>
>>
>>
>> ---
>> Regards.
>> Norman
>>
>>
>> "Chersie" <(E-Mail Removed)> wrote in message
>> newsAA5B595-9430-4E32-8440-(E-Mail Removed)...
>> >I have one worksheet named "Data" that is basically a database of
>> >information
>> > for up to 20 representatives. Each representative may be named several
>> > times
>> > throughout the worksheet in column B.
>> >
>> > I need a macro that will copy any row with Representative #1's name and
>> > all
>> > the information in that row to a worksheet that has been named for that
>> > specific representative, adding each additional row below the first with
>> > no
>> > blank rows.
>> >
>> > I need to do the same for Representative #2, and so on. There may or may
>> > not be 20 representatives at any given time and so I don't want a
>> > specified
>> > number of sheets/representatives to be designated.
>> >
>> > I want to do the same thing copying data that was entered for a certain
>> > month (the date field is column A) to a worksheet that has been named
>> > Jan08,
>> > Feb08, Mar08, etc.
>> >
>> > Ultimately, I want any data for a specific representative to be copied to
>> > a
>> > sheet named for that representative and any data entered in a specific
>> > month
>> > to be copied to a sheet named for that month.
>> >
>> > I hope that makes sense.
>> >
>> > Thank you so much in advance!

>>
>>

 
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
COPY DATA IN SPECIFIC WAY K Microsoft Excel Programming 5 22nd Aug 2008 03:16 PM
Copy specific data to second worksheet Andre7266 Microsoft Excel New Users 4 13th May 2008 08:39 PM
Pivot Table - Copy All Data from a Specific Variable Data Field troy.litwiler@gmail.com Microsoft Excel Discussion 1 8th Feb 2007 04:36 AM
How to copy specific columns until end of data Matt G. Microsoft Excel Discussion 1 26th Oct 2006 08:05 AM
Copy and Paste specific data lizb22 Microsoft Excel Programming 1 10th Jul 2006 09:28 PM


Features
 

Advertising
 

Newsgroups
 


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