PC Review


Reply
Thread Tools Rate Thread

Copy is criteria met

 
 
Kitten74
Guest
Posts: n/a
 
      29th Apr 2010
I am having trouble finding a function that will copy the data in a given row
to another worksheet if one of the columns contains the word Yes.

For example if in the below situation cell G5 has a “Y,” I want to Create
Cover Sheet in Sheet 2 with return the data from row 5.
Sheet 1
Box/Packet No Item No Account Name Account Number Content Vault sheet Create
Cover Sheet
100 1 Mr A 123 AF 1 N
101 2 Mr B 456 AF 2 N
203 3 Mr C 789 AF 3 N
100 4 Mr D 111 AF 4 Y

Sheet2
Box/Packet No 100
Item No 4
Account Name Mr D
Account Number 111
Content AF
Vault sheet 4

Can someone help?

 
Reply With Quote
 
 
 
 
Don Guillett
Guest
Posts: n/a
 
      29th Apr 2010
One instance only or All if more than one found
If desired, send your file to my address below. I will only look if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results.


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Kitten74" <(E-Mail Removed)> wrote in message
news:5C086F85-C8B0-40C3-9BFD-(E-Mail Removed)...
>I am having trouble finding a function that will copy the data in a given
>row
> to another worksheet if one of the columns contains the word Yes.
>
> For example if in the below situation cell G5 has a “Y,” I want to Create
> Cover Sheet in Sheet 2 with return the data from row 5.
> Sheet 1
> Box/Packet No Item No Account Name Account Number Content Vault sheet
> Create
> Cover Sheet
> 100 1 Mr A 123 AF 1 N
> 101 2 Mr B 456 AF 2 N
> 203 3 Mr C 789 AF 3 N
> 100 4 Mr D 111 AF 4 Y
>
> Sheet2
> Box/Packet No 100
> Item No 4
> Account Name Mr D
> Account Number 111
> Content AF
> Vault sheet 4
>
> Can someone help?
>


 
Reply With Quote
 
Kitten74
Guest
Posts: n/a
 
      29th Apr 2010
Hi Thanks for helping, basically, I have a list i have to maintain, but
everytime something is added to the list i also need to complete a summary
sheet that goes in an archive box. I thought rather having to type out all
the information on to the list and the summary, it maybe possible to upadate
the list and this auto populate the summary sheet.


"Don Guillett" wrote:

> One instance only or All if more than one found
> If desired, send your file to my address below. I will only look if:
> 1. You send a copy of this message on an inserted sheet
> 2. You give me the newsgroup and the subject line
> 3. You send a clear explanation of what you want
> 4. You send before/after examples and expected results.
>
>
> --
> Don Guillett
> Microsoft MVP Excel
> SalesAid Software
> (E-Mail Removed)
> "Kitten74" <(E-Mail Removed)> wrote in message
> news:5C086F85-C8B0-40C3-9BFD-(E-Mail Removed)...
> >I am having trouble finding a function that will copy the data in a given
> >row
> > to another worksheet if one of the columns contains the word Yes.
> >
> > For example if in the below situation cell G5 has a “Y,” I want to Create
> > Cover Sheet in Sheet 2 with return the data from row 5.
> > Sheet 1
> > Box/Packet No Item No Account Name Account Number Content Vault sheet
> > Create
> > Cover Sheet
> > 100 1 Mr A 123 AF 1 N
> > 101 2 Mr B 456 AF 2 N
> > 203 3 Mr C 789 AF 3 N
> > 100 4 Mr D 111 AF 4 Y
> >
> > Sheet2
> > Box/Packet No 100
> > Item No 4
> > Account Name Mr D
> > Account Number 111
> > Content AF
> > Vault sheet 4
> >
> > Can someone help?
> >

>
> .
>

 
Reply With Quote
 
Don Guillett
Guest
Posts: n/a
 
      29th Apr 2010
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count > 1 Or Target.Column <> 7 Then Exit Sub
If UCase(Left(Target, 1)) = "Y" Then
Rows(Target.Row).Copy
Sheets("Summary").Range("b3").PasteSpecial Paste:=xlPasteAll, _
Operation:=xlNone, SkipBlanks:=False, Transpose:=True
Application.CutCopyMode = False
End If
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(E-Mail Removed)
"Kitten74" <(E-Mail Removed)> wrote in message
news:F305A376-F597-4028-A2B5-(E-Mail Removed)...
> Hi Thanks for helping, basically, I have a list i have to maintain, but
> everytime something is added to the list i also need to complete a summary
> sheet that goes in an archive box. I thought rather having to type out all
> the information on to the list and the summary, it maybe possible to
> upadate
> the list and this auto populate the summary sheet.
>
>
> "Don Guillett" wrote:
>
>> One instance only or All if more than one found
>> If desired, send your file to my address below. I will only look
>> if:
>> 1. You send a copy of this message on an inserted sheet
>> 2. You give me the newsgroup and the subject line
>> 3. You send a clear explanation of what you want
>> 4. You send before/after examples and expected results.
>>
>>
>> --
>> Don Guillett
>> Microsoft MVP Excel
>> SalesAid Software
>> (E-Mail Removed)
>> "Kitten74" <(E-Mail Removed)> wrote in message
>> news:5C086F85-C8B0-40C3-9BFD-(E-Mail Removed)...
>> >I am having trouble finding a function that will copy the data in a
>> >given
>> >row
>> > to another worksheet if one of the columns contains the word Yes.
>> >
>> > For example if in the below situation cell G5 has a “Y,” I want to
>> > Create
>> > Cover Sheet in Sheet 2 with return the data from row 5.
>> > Sheet 1
>> > Box/Packet No Item No Account Name Account Number Content Vault sheet
>> > Create
>> > Cover Sheet
>> > 100 1 Mr A 123 AF 1 N
>> > 101 2 Mr B 456 AF 2 N
>> > 203 3 Mr C 789 AF 3 N
>> > 100 4 Mr D 111 AF 4 Y
>> >
>> > Sheet2
>> > Box/Packet No 100
>> > Item No 4
>> > Account Name Mr D
>> > Account Number 111
>> > Content AF
>> > Vault sheet 4
>> >
>> > Can someone help?
>> >

>>
>> .
>>


 
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
Re: Copy is criteria met Don Guillett Microsoft Excel Worksheet Functions 2 29th Apr 2010 05:09 PM
Re: Copy is criteria met Don Guillett Microsoft Excel Worksheet Functions 0 29th Apr 2010 04:20 PM
Copy row on criteria miek Microsoft Excel Programming 4 26th Aug 2008 08:52 PM
RE: Copy with criteria =?Utf-8?B?YWN3?= Microsoft Excel Programming 0 6th Feb 2004 12:06 AM
Copy with criteria =?Utf-8?B?SmFtZXMgU3RlcGhlbnM=?= Microsoft Excel Programming 5 11th Nov 2003 10:51 PM


Features
 

Advertising
 

Newsgroups
 


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