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.
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
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.
 
Upvote 0
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)?
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,214,839
Messages
6,121,892
Members
449,058
Latest member
Guy Boot

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top