a complex solution to help mindless work

bmarquez74

New Member
Joined
Sep 27, 2013
Messages
3
on a daily basis I have lots of data that needs to be separated into various tabs. Example data below:

1a3fFEF
2a4fDFG
3a5fRET
4a3fFGH
5a7fERT
6a3fDFG
7a4fERT
8a3fDFG
9a6fDFG
10a3fERTY

<tbody>
</tbody>

Based on the contents of the 3rd column, I need the whole line moved to a new spreadsheet within the workbook. For instance, if column 3 data is '4', I need both of those lines moved to another spreadsheet.

2a4fDFG
7a4fERT

<tbody>
</tbody>

Is this possible? Ideally, I would like to have a macro that I can run to move all the data.
 

Some videos you may like

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
35,947
Office Version
2010
Platform
Windows
on a daily basis I have lots of data that needs to be separated into various tabs. Example data below:

1
a
3
f
FEF
2
a
4
f
DFG
3
a
5
f
RET
4
a
3
f
FGH
5
a
7
f
ERT
6
a
3
f
DFG
7
a
4
f
ERT
8
a
3
f
DFG
9
a
6
f
DFG
10
a
3
f
ERTY

<TBODY>
</TBODY>

Based on the contents of the 3rd column, I need the whole line moved to a new spreadsheet within the workbook. For instance, if column 3 data is '4', I need both of those lines moved to another spreadsheet.

2
a
4
f
DFG
7
a
4
f
ERT

<TBODY>
</TBODY>

Is this possible? Ideally, I would like to have a macro that I can run to move all the data.
Sure it is possible, but you are going to have to tell us what sheets the various numbers in Column "C" move to.
 

Rick Rothstein

MrExcel MVP
Joined
Apr 18, 2011
Messages
35,947
Office Version
2010
Platform
Windows
Thanks Rick, Let's just assume generic names such as sheet1, sheet2, and sheet3.
I have been doing this volunteer stuff for quite some time now and I can assure you that doing what you suggest is usually a bad idea as it means more work for me later when you can't match the code and its loop iterations to your actual sheet names. I rather avoid that if you don't mind. I have trouble believing you do not already have the number-sheet name mappings, so I'll ask again... please tell them to us. Also, what sheet (name) is your main data on? Also, does your data really start on Row 1 as your example shows (that is, there is no header row)?
 

bmarquez74

New Member
Joined
Sep 27, 2013
Messages
3
The sheet that the main data is on is different all the time..I suppose we can change it prior to running the code. The the three sheets are labeled as [AT&T Feats] [AT&T Acts] [AT&T Ups]

There is a header row, so the data starts on Row 2. The data that will be checked is actually in Column H. Obviously, I'm not trying to make more work for you, but I do appreciate your assistance.
 

Watch MrExcel Video

Forum statistics

Threads
1,099,795
Messages
5,470,827
Members
406,727
Latest member
Kimze

This Week's Hot Topics

Top