PC Review


Reply
Thread Tools Rate Thread

How to copy cells from one worksheet to another if the value in ra

 
 
sgtpsychosis
Guest
Posts: n/a
 
      17th Aug 2008
I have a large amount of data on one worksheet. The data on this worksheet
applies to all the personnel in the entire organization.
One column in this worksheet identifies which workgroup each person is a
member of (Column E, values are "WG1","WG2","WG3", and "WG4").
I have created worksheets for the separate workgroups.
How can I have the data specific for each workgroup automatically copied
from the total organization worksheet to each working groups individual
worksheet, based on the value in Column E?
 
Reply With Quote
 
 
 
 
Mike
Guest
Posts: n/a
 
      17th Aug 2008
The fastest way would be to filter by Column E. Then Copy and paste on the
worksheet you want.

"sgtpsychosis" wrote:

> I have a large amount of data on one worksheet. The data on this worksheet
> applies to all the personnel in the entire organization.
> One column in this worksheet identifies which workgroup each person is a
> member of (Column E, values are "WG1","WG2","WG3", and "WG4").
> I have created worksheets for the separate workgroups.
> How can I have the data specific for each workgroup automatically copied
> from the total organization worksheet to each working groups individual
> worksheet, based on the value in Column E?

 
Reply With Quote
 
Lookup formula limitation?
Guest
Posts: n/a
 
      17th Aug 2008
Mike,
Do you know why, when I copy and past from file one A1 has 1000 words in it
to another file B2, B2 shows only 35 words out of 1000?

"Mike" wrote:

> The fastest way would be to filter by Column E. Then Copy and paste on the
> worksheet you want.
>
> "sgtpsychosis" wrote:
>
> > I have a large amount of data on one worksheet. The data on this worksheet
> > applies to all the personnel in the entire organization.
> > One column in this worksheet identifies which workgroup each person is a
> > member of (Column E, values are "WG1","WG2","WG3", and "WG4").
> > I have created worksheets for the separate workgroups.
> > How can I have the data specific for each workgroup automatically copied
> > from the total organization worksheet to each working groups individual
> > worksheet, based on the value in Column E?

 
Reply With Quote
 
Otto Moehrbach
Guest
Posts: n/a
 
      17th Aug 2008
Sgt
Mike gave you a worksheet solution that works well. But you said
"automatically" That implies you want Excel to do all the work. That is
called VBA programming. The following macro does all the filtering,
copying, and pasting for you. Come back if you need more. HTH Otto
Sub ShuffleData()
Dim TotalRng As Range
Dim wg As Variant
Dim RngToCopy As Range
Set TotalRng = Range("A1", Range("A" & Rows.Count).End(xlUp)).Resize(,
10)
Set RngToCopy = Range("A2", Range("A" & Rows.Count).End(xlUp)).Resize(,
10)
Application.ScreenUpdating = False
TotalRng.AutoFilter
For Each wg In Array("WG1", "WG2", "WG3", "WG4")
On Error GoTo NoData
TotalRng.AutoFilter Field:=5, Criteria1:=wg
With Sheets(wg)
RngToCopy.SpecialCells(xlCellTypeVisible).Copy
.Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial
End With
NoData:
On Error GoTo 0
Next wg
TotalRng.AutoFilter
Application.ScreenUpdating = True
End Sub
"sgtpsychosis" <(E-Mail Removed)> wrote in message
news:89805569-8853-43AD-9EF2-(E-Mail Removed)...
>I have a large amount of data on one worksheet. The data on this worksheet
> applies to all the personnel in the entire organization.
> One column in this worksheet identifies which workgroup each person is a
> member of (Column E, values are "WG1","WG2","WG3", and "WG4").
> I have created worksheets for the separate workgroups.
> How can I have the data specific for each workgroup automatically copied
> from the total organization worksheet to each working groups individual
> worksheet, based on the value in Column E?


 
Reply With Quote
 
Otto Moehrbach
Guest
Posts: n/a
 
      17th Aug 2008
Are you the psychotic Sgt or are you a new OP? If the latter, describe in
detail what you are trying to do, what you do, what Excel does, and what you
want Excel to do. If the former, same questions. HTH Otto
"Lookup formula limitation?"
<(E-Mail Removed)> wrote in message
news:BF475C87-1AD9-4742-8AE4-(E-Mail Removed)...
> Mike,
> Do you know why, when I copy and past from file one A1 has 1000 words in
> it
> to another file B2, B2 shows only 35 words out of 1000?
>
> "Mike" wrote:
>
>> The fastest way would be to filter by Column E. Then Copy and paste on
>> the
>> worksheet you want.
>>
>> "sgtpsychosis" wrote:
>>
>> > I have a large amount of data on one worksheet. The data on this
>> > worksheet
>> > applies to all the personnel in the entire organization.
>> > One column in this worksheet identifies which workgroup each person is
>> > a
>> > member of (Column E, values are "WG1","WG2","WG3", and "WG4").
>> > I have created worksheets for the separate workgroups.
>> > How can I have the data specific for each workgroup automatically
>> > copied
>> > from the total organization worksheet to each working groups individual
>> > worksheet, based on the value in Column E?


 
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
How To Automate Copy Certian Cells from Worksheet A to Certian Cells Worksheet B? Clarence Jackson Microsoft Excel Programming 1 9th Jul 2007 07:48 PM
Copy & paste cells fr open worksheet then close the worksheet =?Utf-8?B?U2lu?= Microsoft Excel Programming 1 2nd Oct 2006 02:20 PM
copy cells from one worksheet to another =?Utf-8?B?R2FycmV0dA==?= Microsoft Excel Misc 1 5th Sep 2005 12:55 AM
Copy cells to another worksheet =?Utf-8?B?RGVuaXNl?= Microsoft Excel Misc 3 22nd Apr 2005 08:06 PM
Copy cells to new worksheet but only IF =?Utf-8?B?bmVqbA==?= Microsoft Excel Programming 1 17th Sep 2004 12:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:18 AM.