ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   extract odd numbered rows from one sheet to put into another? (https://www.excelbanter.com/excel-discussion-misc-queries/105388-extract-odd-numbered-rows-one-sheet-put-into-another.html)

missy

extract odd numbered rows from one sheet to put into another?
 
Does anyone have any idea on how to extract only the odd numbered rows from
one spreadsheet to put into another. I've tried doing this with if
statements but this leaves blank rows which i do not want.

Trevor Shuttleworth

extract odd numbered rows from one sheet to put into another?
 
You could add a "helper" column and enter the formula: =MOD(ROW(),2)

Drag down or AutoFill to the end of your data

Use AutoFilter to select the rows with a 1 in the helper column.

Select the visible rows, copy and paste into your new sheet.

Delete the helper column in the source and target

Done

Regards

Trevor


"missy" wrote in message
...
Does anyone have any idea on how to extract only the odd numbered rows
from
one spreadsheet to put into another. I've tried doing this with if
statements but this leaves blank rows which i do not want.





All times are GMT +1. The time now is 12:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com