VBA- Data Mgt

quej2003

New Member
Joined
Oct 5, 2010
Messages
49
Hi All,

Got a couple of questions wouldn't mind being answered:

1- I have some data that is import along with a load of crap surrounding it kinda of like below:

crap
crap
crap

identifier
Data
Data
Data

More crap

Was wondering how in macro you would write it such that can look through the column A and find the identifier (just a text string) then delete all the rows above it including the identified, then all the rows below the data.

2- Have another data set, from column A to AZ + variable number of rows,looking to search for the first intsance of multiple criteria in the top row from right to left (starting from right I guess I mean) then when one of the criteria is found copy the column it is in and the 3 columns to the left of it into a different sheet that has a similiar name to one this data is in: so data is in "jan 2011" to be copied into the existing sheet of "jan 2011 data"

Cheers
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,224,621
Messages
6,179,937
Members
452,949
Latest member
beartooth91

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