#1   Report Post  
Posted to microsoft.public.excel.misc
ledzepe
 
Posts: n/a
Default Conditional copy


Hi everyone,

On Sheet1 ColumnA, I got data that repeats itself and each row contains
. For example:
apple data1
orange data2
apple data3
banana data4
orange data5
apple data6

On sheet2, I want to copy, from Sheet1, all rows with "apple" in column
A. The result would look like:
apple data1
apple data3
apple data6

Is there a way to automate this? The way I do it by AutoFilter Sheet 1
or by sorting it then do a copy and paste. Its a bit tedious because
this is a ten page document.


--
ledzepe
------------------------------------------------------------------------
ledzepe's Profile: http://www.excelforum.com/member.php...o&userid=25207
View this thread: http://www.excelforum.com/showthread...hreadid=518790

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Conditional copy

If I only need that one sheet (with Apple), I'd do it manually.

But if I needed a sheet for each fruit, then I'd use a macro...

Debra Dalgleish and Ron de Bruin have samples that you may like. Ron's addin
may be sufficient right out of the box.

Debra's site:
http://www.contextures.com/excelfiles.html

Create New Sheets from Filtered List -- uses an Advanced Filter to create
separate sheet of orders for each sales rep visible in a filtered list; macro
automates the filter. AdvFilterRepFiltered.xls 35 kb

or

Update Sheets from Master -- uses an Advanced Filter to send data from
Master sheet to individual worksheets -- replaces old data with current.
AdvFilterCity.xls 55 kb

And Ron de Bruin's easyfilter.
http://www.rondebruin.nl/easyfilter.htm

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

ledzepe wrote:

Hi everyone,

On Sheet1 ColumnA, I got data that repeats itself and each row contains
For example:
apple data1
orange data2
apple data3
banana data4
orange data5
apple data6

On sheet2, I want to copy, from Sheet1, all rows with "apple" in column
A. The result would look like:
apple data1
apple data3
apple data6

Is there a way to automate this? The way I do it by AutoFilter Sheet 1
or by sorting it then do a copy and paste. Its a bit tedious because
this is a ten page document.

--
ledzepe
------------------------------------------------------------------------
ledzepe's Profile: http://www.excelforum.com/member.php...o&userid=25207
View this thread: http://www.excelforum.com/showthread...hreadid=518790


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default Conditional copy

DataFilteradvanced Filter

HTH
--
AP

"ledzepe" a écrit
dans le message de
...

Hi everyone,

On Sheet1 ColumnA, I got data that repeats itself and each row contains
For example:
apple data1
orange data2
apple data3
banana data4
orange data5
apple data6

On sheet2, I want to copy, from Sheet1, all rows with "apple" in column
A. The result would look like:
apple data1
apple data3
apple data6

Is there a way to automate this? The way I do it by AutoFilter Sheet 1
or by sorting it then do a copy and paste. Its a bit tedious because
this is a ten page document.


--
ledzepe
------------------------------------------------------------------------
ledzepe's Profile:

http://www.excelforum.com/member.php...o&userid=25207
View this thread: http://www.excelforum.com/showthread...hreadid=518790



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
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
can i freeze conditional formating to copy to another worksheet Chris Lane Excel Discussion (Misc queries) 1 October 12th 05 06:53 PM
copy values generated by conditional formula in one sheet to the other work sheet as values bobby Excel Discussion (Misc queries) 1 October 5th 05 12:18 PM
How to copy conditional formatting Dan Excel Worksheet Functions 3 April 1st 05 12:33 AM
How do I copy a conditional format that uses a formula in a serie. TygerJ Setting up and Configuration of Excel 1 March 31st 05 01:07 AM


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

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"