Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default searching and copying

Does anyone know a way that I can search a worksheet down column C, when it
is blank see if column A in the corresponding row has a number, if it does,
copy the entire row A through M and paste it on another sheet then do the
same thing on the next row down? This process would conitnue until the macro
found that both the cells in columns A and C were blank.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default searching and copying

One play which does it using formulas ..

Assume source data to be monitored is in a sheet: x,
cols A to M, data from row1 down

In another sheet,
Put in A1:
=IF(AND(x!C1="",ISNUMBER(x!A1)),ROW(),"")

Put in B1:
=IF(ROW()COUNT($A:$A),"",IF(INDEX(x!A:A,SMALL($A: $A,ROW()))=0,"",INDEX(x!A:A,SMALL($A:$A,ROW()))))
Copy B1 across to N1. Select A1:N1, copy down to cover the max expected
extent of source data in x, say down to N200? Hide away col A. Cols B to N
will return the required result lines from x's cols A to M, all neatly
bunched at the top.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"goalman55" wrote:
Does anyone know a way that I can search a worksheet down column C, when it
is blank see if column A in the corresponding row has a number, if it does,
copy the entire row A through M and paste it on another sheet then do the
same thing on the next row down? This process would conitnue until the macro
found that both the cells in columns A and C were blank.

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
Searching a workbook and copying results to new worksheet jhyatt Excel Discussion (Misc queries) 0 October 4th 07 05:09 PM
copying the Hyperlink function result without copying the actual formula mcheng Excel Worksheet Functions 2 June 9th 07 02:43 AM
Searching, matching then searching another list based on the match A.S. Excel Discussion (Misc queries) 1 December 13th 06 05:08 AM
searching and copying text in drawing layer of excel? jeffery Excel Discussion (Misc queries) 3 November 10th 06 04:41 PM
Searching a column and copying rows davidshin Excel Worksheet Functions 1 November 10th 04 07:29 PM


All times are GMT +1. The time now is 04:07 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"