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:

[TABLE="width: 235"]
<tbody>[TR]
[TD="class: xl65, width: 47"]1[/TD]
[TD="class: xl65, width: 47"]a[/TD]
[TD="class: xl65, width: 47"]3[/TD]
[TD="class: xl65, width: 47"]f[/TD]
[TD="class: xl65, width: 47"]FEF[/TD]
[/TR]
[TR]
[TD="class: xl65"]2[/TD]
[TD="class: xl65"]a[/TD]
[TD="class: xl65"]4[/TD]
[TD="class: xl65"]f[/TD]
[TD="class: xl65"]DFG[/TD]
[/TR]
[TR]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]a[/TD]
[TD="class: xl65"]5[/TD]
[TD="class: xl65"]f[/TD]
[TD="class: xl65"]RET[/TD]
[/TR]
[TR]
[TD="class: xl65"]4[/TD]
[TD="class: xl65"]a[/TD]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]f[/TD]
[TD="class: xl65"]FGH[/TD]
[/TR]
[TR]
[TD="class: xl65"]5[/TD]
[TD="class: xl65"]a[/TD]
[TD="class: xl65"]7[/TD]
[TD="class: xl65"]f[/TD]
[TD="class: xl65"]ERT[/TD]
[/TR]
[TR]
[TD="class: xl65"]6[/TD]
[TD="class: xl65"]a[/TD]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]f[/TD]
[TD="class: xl65"]DFG[/TD]
[/TR]
[TR]
[TD="class: xl65"]7[/TD]
[TD="class: xl65"]a[/TD]
[TD="class: xl65"]4[/TD]
[TD="class: xl65"]f[/TD]
[TD="class: xl65"]ERT[/TD]
[/TR]
[TR]
[TD="class: xl65"]8[/TD]
[TD="class: xl65"]a[/TD]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]f[/TD]
[TD="class: xl65"]DFG[/TD]
[/TR]
[TR]
[TD="class: xl65"]9[/TD]
[TD="class: xl65"]a[/TD]
[TD="class: xl65"]6[/TD]
[TD="class: xl65"]f[/TD]
[TD="class: xl65"]DFG[/TD]
[/TR]
[TR]
[TD="class: xl65"]10[/TD]
[TD="class: xl65"]a[/TD]
[TD="class: xl65"]3[/TD]
[TD="class: xl65"]f[/TD]
[TD="class: xl65"]ERTY[/TD]
[/TR]
</tbody>[/TABLE]

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.

[TABLE="width: 235"]
<tbody>[TR]
[TD="class: xl65, width: 47"]2[/TD]
[TD="class: xl65, width: 47"]a[/TD]
[TD="class: xl65, width: 47"]4[/TD]
[TD="class: xl65, width: 47"]f[/TD]
[TD="class: xl65, width: 47"]DFG[/TD]
[/TR]
[TR]
[TD="class: xl65"]7[/TD]
[TD="class: xl65"]a[/TD]
[TD="class: xl65"]4[/TD]
[TD="class: xl65"]f[/TD]
[TD="class: xl65"]ERT[/TD]
[/TR]
</tbody>[/TABLE]

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

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
on a daily basis I have lots of data that needs to be separated into various tabs. Example data below:

[TABLE="width: 235"]
<TBODY>[TR]
[TD="class: xl65, width: 47"]1
[/TD]
[TD="class: xl65, width: 47"]a
[/TD]
[TD="class: xl65, width: 47"]3
[/TD]
[TD="class: xl65, width: 47"]f
[/TD]
[TD="class: xl65, width: 47"]FEF
[/TD]
[/TR]
[TR]
[TD="class: xl65"]2
[/TD]
[TD="class: xl65"]a
[/TD]
[TD="class: xl65"]4
[/TD]
[TD="class: xl65"]f
[/TD]
[TD="class: xl65"]DFG
[/TD]
[/TR]
[TR]
[TD="class: xl65"]3
[/TD]
[TD="class: xl65"]a
[/TD]
[TD="class: xl65"]5
[/TD]
[TD="class: xl65"]f
[/TD]
[TD="class: xl65"]RET
[/TD]
[/TR]
[TR]
[TD="class: xl65"]4
[/TD]
[TD="class: xl65"]a
[/TD]
[TD="class: xl65"]3
[/TD]
[TD="class: xl65"]f
[/TD]
[TD="class: xl65"]FGH
[/TD]
[/TR]
[TR]
[TD="class: xl65"]5
[/TD]
[TD="class: xl65"]a
[/TD]
[TD="class: xl65"]7
[/TD]
[TD="class: xl65"]f
[/TD]
[TD="class: xl65"]ERT
[/TD]
[/TR]
[TR]
[TD="class: xl65"]6
[/TD]
[TD="class: xl65"]a
[/TD]
[TD="class: xl65"]3
[/TD]
[TD="class: xl65"]f
[/TD]
[TD="class: xl65"]DFG
[/TD]
[/TR]
[TR]
[TD="class: xl65"]7
[/TD]
[TD="class: xl65"]a
[/TD]
[TD="class: xl65"]4
[/TD]
[TD="class: xl65"]f
[/TD]
[TD="class: xl65"]ERT
[/TD]
[/TR]
[TR]
[TD="class: xl65"]8
[/TD]
[TD="class: xl65"]a
[/TD]
[TD="class: xl65"]3
[/TD]
[TD="class: xl65"]f
[/TD]
[TD="class: xl65"]DFG
[/TD]
[/TR]
[TR]
[TD="class: xl65"]9
[/TD]
[TD="class: xl65"]a
[/TD]
[TD="class: xl65"]6
[/TD]
[TD="class: xl65"]f
[/TD]
[TD="class: xl65"]DFG
[/TD]
[/TR]
[TR]
[TD="class: xl65"]10
[/TD]
[TD="class: xl65"]a
[/TD]
[TD="class: xl65"]3
[/TD]
[TD="class: xl65"]f
[/TD]
[TD="class: xl65"]ERTY
[/TD]
[/TR]
</TBODY>[/TABLE]

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.

[TABLE="width: 235"]
<TBODY>[TR]
[TD="class: xl65, width: 47"]2
[/TD]
[TD="class: xl65, width: 47"]a
[/TD]
[TD="class: xl65, width: 47"]4
[/TD]
[TD="class: xl65, width: 47"]f
[/TD]
[TD="class: xl65, width: 47"]DFG
[/TD]
[/TR]
[TR]
[TD="class: xl65"]7
[/TD]
[TD="class: xl65"]a
[/TD]
[TD="class: xl65"]4
[/TD]
[TD="class: xl65"]f
[/TD]
[TD="class: xl65"]ERT
[/TD]
[/TR]
</TBODY>[/TABLE]

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,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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