Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Extracting data from multiple worksheets

I have a workbook with 3 worksheets, WS1, WS2 and an empty worksheet.
I need to extract rows meeting some criteria from WS1 and WS2 to the empty
worksheet.

To simplify things a little, WS1 is as follows
col1 col2 col3
1 2 a
2 4 b
1 6 c

WS2 is as follows:
col1 col2 col3
4 2 d
6 5 c
2 3 b
1 5 c

I need to extract the rows from WS1 and WS2 with col3 equal to "c", and
display them in the empty worksheet. The result is:
col1 col2 col3
1 6 c
6 5 c
1 5 c

How do I do that using VBA?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Extracting data from multiple worksheets

Hi Don,

Your post gave me the idea of using filtering. As my criteria is actually
much more complex, I explored advanced filtering and found that that's
exactly what I need. Thank you very much. :-)


"Don Guillett"
...
For each sheet Use datafilterautofilterfilter col 3 for ccopy to next
avail row on sh 3. Record a macro if desired and then clean it up.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"R NG" wrote in message
...
I have a workbook with 3 worksheets, WS1, WS2 and an empty worksheet.
I need to extract rows meeting some criteria from WS1 and WS2 to the
empty worksheet.

To simplify things a little, WS1 is as follows
col1 col2 col3
1 2 a
2 4 b
1 6 c

WS2 is as follows:
col1 col2 col3
4 2 d
6 5 c
2 3 b
1 5 c

I need to extract the rows from WS1 and WS2 with col3 equal to "c", and
display them in the empty worksheet. The result is:
col1 col2 col3
1 6 c
6 5 c
1 5 c

How do I do that using VBA?




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
Link multiple worksheets while extracting data aj9000 Excel Worksheet Functions 0 September 28th 06 11:55 PM
extracting data to csv from multiple worksheets [email protected] Excel Programming 0 September 11th 06 08:33 PM
Extracting Data from Multiple worksheets to a single worksheet Albie Excel Programming 2 August 24th 06 09:01 PM
extracting data from other worksheets peiwen Excel Worksheet Functions 2 July 3rd 06 10:42 AM
Extracting data from multiple worksheets into a list mnirula Excel Worksheet Functions 16 February 25th 05 08:52 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"