Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
AM AM is offline
external usenet poster
 
Posts: 41
Default copy cells in a row to another sheet

I have a worksheet with twelve columns and 200 rows of data.
If column A is NOTBLANK and Column J is NOT= 1, then I want to copy cells in
column A, B, C and D to another worksheet. All of these cells from the same
row. If either condition doesn't match, then skip to the next row. The result
would be a compact report of about 40 rows with entry in column A ,B, C and D.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default copy cells in a row to another sheet

See previous response
--
Gary''s Student - gsnu200739


"AM" wrote:

I have a worksheet with twelve columns and 200 rows of data.
If column A is NOTBLANK and Column J is NOT= 1, then I want to copy cells in
column A, B, C and D to another worksheet. All of these cells from the same
row. If either condition doesn't match, then skip to the next row. The result
would be a compact report of about 40 rows with entry in column A ,B, C and D.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default copy cells in a row to another sheet

If column A is NOTBLANK and Column J is NOT= 1

You can adapt the sample I provided in response to your earlier 2 postings:
http://www.savefile.com/files/1000526
Show lines satisfying criteria in another sht.xls

Just make a copy of the sheet: Output

In the copy,

Change the criteria in A2 to read as:
=IF(AND(X!A2<"",X!J2<1),ROW(),"")
Copy A2 down. That's it. No change required to the formulas in cols B to D.
Cols B to D will return the required compacted results from cols B to D in X.

------ ------
And if you really wanted col A from X to be returned as well (I read this as
a typo in your posting here)

Just change B2 to read as:
=IF(ROWS($1:1)COUNT($A:$A),"",INDEX(X!A:A,SMALL($ A:$A,ROWS($1:1))))
Copy B2 to E2, fill down to E200, done! You've just extended the returns to
cover col A in X as well.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"AM" wrote:
I have a worksheet with twelve columns and 200 rows of data.
If column A is NOTBLANK and Column J is NOT= 1, then I want to copy cells in
column A, B, C and D to another worksheet. All of these cells from the same
row. If either condition doesn't match, then skip to the next row. The result
would be a compact report of about 40 rows with entry in column A ,B, C and D.

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 cells in a row to another sheet AM Excel Worksheet Functions 2 August 25th 07 04:44 AM
Copy certain cells in a row to another sheet, based on certain val AM Excel Worksheet Functions 2 August 25th 07 04:38 AM
Copy cells from one sheet to the next available row on another? clarkie Excel Discussion (Misc queries) 2 February 26th 07 07:12 PM
Copy sheet 1 data to sheet 2 cells. Tom Doggett Excel Worksheet Functions 1 July 19th 05 11:49 PM
Copy row sheet-sheet skipping unqualified cells StevenL Excel Worksheet Functions 0 April 16th 05 11:11 PM


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