#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Row to 2nd sheet

Have 10+ columns of data with 100+ rows.
And in Column C there are different codes (S, R, K, X).
I would like a formula that searches the columns and finds just the R coded
rows and then moves that "R" entire row of data to a 2nd sheet.
--
David G.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Row to 2nd sheet

Hi David

One way
Apply an autofilter with DataFilterAutofilter
Use the dropdown on column C to select R
Mark the range of visible cells CutPaste to Sheet2

--
Regards

Roger Govier


"David G." wrote in message
...
Have 10+ columns of data with 100+ rows.
And in Column C there are different codes (S, R, K, X).
I would like a formula that searches the columns and finds just the R
coded
rows and then moves that "R" entire row of data to a 2nd sheet.
--
David G.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Row to 2nd sheet

Here's a way to copy all lines (not move) into another sheet by the key col
value

Assume source data in Sheet1, cols A to J, data from row2 down, where the
key col = col C (eg: S, R, K, X, etc - only alphas assumed)

In Sheet2,
Enter the key value into A1, eg: R

Put in A2: =IF($A$1="","",IF(Sheet1!C2=$A$1,ROW(),""))

Put in B2:
=IF(ROW(A1)COUNT($A:$A),"",INDEX(Sheet1!A:A,SMALL ($A:$A,ROW(A1))))
Copy B2 across 10 cols to K2. Select A2:K2, copy down to cover the max
expected extent of source data in Sheet1, eg down to K200?. Cols B to K will
return only the lines corresponding to the key value entered in A1, all
neatly bunched at the top.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"David G." wrote:
Have 10+ columns of data with 100+ rows.
And in Column C there are different codes (S, R, K, X).
I would like a formula that searches the columns and finds just the R coded
rows and then moves that "R" entire row of data to a 2nd sheet.
--
David G.

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
Auto Rename Excel Sheets in Workbook Kulin Shah Excel Worksheet Functions 12 December 25th 06 03:27 PM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
Sum up columns in different sheet with error check zeyneddine Excel Discussion (Misc queries) 13 July 10th 06 01:21 PM
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
Using a relative SHEET reference for source data in a chart James Charts and Charting in Excel 6 August 16th 05 05:07 PM


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