Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Extract rows matching condition

Hello,

I have some .xls files in a folder (many enough - 200 - to start
thinking about scripting) each containing one sheet named "sheet1"
I'd like to extract from each .xls file the entire rows that match the
following condition: ("row number is greater than 20" AND "column B
does not contain any value") and add those matching rows into a new
big .xls file

Altough I believe this can be easily scripted by a heavy-experienced
scripting guy, my excel scripting history is null, but I think I could
make a start from some examples

Thank you very much,
Costin

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Extract rows matching condition

Hi Costin

I have a example here that use Autofilter
Try this first and post back if you have the example working.
http://www.rondebruin.nl/copy3.htm

See this example
http://www.rondebruin.nl/copy3.htm#Filter

We can change the example then to your situation if you need more help then



--

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


"Costin Gusa" wrote in message oups.com...
Hello,

I have some .xls files in a folder (many enough - 200 - to start
thinking about scripting) each containing one sheet named "sheet1"
I'd like to extract from each .xls file the entire rows that match the
following condition: ("row number is greater than 20" AND "column B
does not contain any value") and add those matching rows into a new
big .xls file

Altough I believe this can be easily scripted by a heavy-experienced
scripting guy, my excel scripting history is null, but I think I could
make a start from some examples

Thank you very much,
Costin

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
Use extract into a condition Mosqui Excel Worksheet Functions 5 January 12th 10 05:21 PM
search for data matching some condition Michael Hahn Excel Worksheet Functions 2 July 18th 07 06:48 PM
extract matching vales TUNGANA KURMA RAJU Excel Discussion (Misc queries) 15 October 25th 06 06:53 PM
Using condition to extract data by matching values from 2 different Excel files schellam Excel Programming 0 November 29th 05 08:43 PM
Extract only non-matching data vect98 Excel Programming 6 August 25th 05 02:11 AM


All times are GMT +1. The time now is 04:01 PM.

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"