ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Help split worksheet (https://www.excelbanter.com/excel-worksheet-functions/205724-help-split-worksheet.html)

Carolina Girl

Help split worksheet
 
Im having problems with asking this question correctly so please bare with
me€¦. In my workbook I have a worksheet titled €śCMG SA Master€ť and six other
sheets €śtest1€ť,€ť test2€ť,€ť test3€ť etc€¦ now on worksheet €śCMG SA Master€ť I
have columns 1 to 300 (this may grow) and rows A:P (this will not grow).
What I need is a Macro that will look at A2 and if it has an €śx€ť in it past
the information in A2:P2 into worksheet €śtest1€ť if not look at B2 if it has
an €śx€ť then do the same on worksheet €śtest2€ť if not continue on 4 more time
(C2 €“ test3, D2 test4 etc€¦) now it can have an x in A2 and B2 I would need it
to show up on both sheets €śtest 1 and €śTest2€ť. Then go down to the next row
and do the same. See example
A B C D E F G H
1
2 x x x Processing Joy
3 x x x accounts

Header row has already been set up on all the sheets row 1. Please help I
was asked to completed this by noon and that did not happen€¦. Thanks in
advance€¦.


TomPl

Help split worksheet
 

A macro could do this, but if you want to do it on you lunch break you could
try filtering. On Sheet "CMG SA Master" activate cell A1. Then
<Data<Filter<AutoFilter. Then in the dropdown in cell A1 select "X".
Copy the resulting rows to Sheet "test1".
Clear the selection in column A by selecting all. Repeat with columns B
through F.

I hope this helps in such a hurry.

Tom

Carolina Girl

Help split worksheet
 
Thanks TomPl
Now that I have a little more time any idea on how the macro is shouold look?



"TomPl" wrote:


A macro could do this, but if you want to do it on you lunch break you could
try filtering. On Sheet "CMG SA Master" activate cell A1. Then
<Data<Filter<AutoFilter. Then in the dropdown in cell A1 select "X".
Copy the resulting rows to Sheet "test1".
Clear the selection in column A by selecting all. Repeat with columns B
through F.

I hope this helps in such a hurry.

Tom



All times are GMT +1. The time now is 01:37 AM.

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