Challenging Macro help

Natalia

Board Regular
Joined
Feb 20, 2009
Messages
72
Hi, i have a work task which is very manual, i was hoping it could be automated.

I need a macro that will look at Col C in sheet "Raw" and look for single string codes before the first "-" if code found then create a tab for that code and import all data for that code to its own worksheet. If no code found then create a worksheet named "INVESTIGATION" and dump all unidentified items to that worksheet.

Note the single code will always be in Upper case, so its easy for the code to scan. Also once the data has imported to its own worksheet, i need the code to insert a row between each unique Comment, but not for sheet "INVESTIGATION". Please see below example.

This is a monthly task, so if new codes are found then the macro needs to create new worksheet for that code.

Excel Workbook
ABC
5MessageFeedDescription
6Deleted1ANXXEAUDREP150311 Joe Bloggs - there is a separate holdings in these bank accounts
7Deleted1GCSXSAUDREP150311 Joe Bloggs - there is a separate holdings in these bank accounts
8Deleted1GSXXSAUDREP150311 Joe Bloggs - there is a separate holdings in these bank accounts
9Deleted1OGSXOAUDREP150311 Joe Bloggs - there is a separate holdings in these bank accounts
10DeletedWSTBFAAUDREP150311 Joe Bloggs - there is a separate holdings in these bank accounts
11DeletedWTINCAAUDREP150311 Joe Bloggs - there is a separate holdings in these bank accounts
12DeletedWTINCADISTAMPBDMP1-Email Me
13DeletedWCTFUNFEAEXPDMP1-Email You
14DeletedWCTFUNPEAEXPDMP1-Email You
15DeletedWCTFUNPECEXPDMP1-Email You
16DeletedWCTFUNPEZEXPDMP1-Email You
17DeletedWEMFUNFE3EXPCITI-Email Me
18DeletedWEMFUNFEAEXPCITI-Email You
19DeletedWEMFUNFEBEXPCITI-Email You
Raw


Excel Workbook
ABC
1MessageFeedDescription
2DeletedWTINCADISTAMPBDMP1-Email Me
3
4DeletedWCTFUNFEAEXPDMP1-Email You
5DeletedWCTFUNPEAEXPDMP1-Email You
6DeletedWCTFUNPECEXPDMP1-Email You
7DeletedWCTFUNPEZEXPDMP1-Email You
DMP1


Excel Workbook
ABC
1MessageFeedDescription
2DeletedWEMFUNFE3EXPCITI-Email Me
3
4DeletedWEMFUNFEAEXPCITI-Email You
5DeletedWEMFUNFEBEXPCITI-Email You
6
CITI


Excel Workbook
ABC
1MessageFeedDescription
2Deleted1ANXXEAUDREP150311 Joe Bloggs - there is a separate holdings in these bank accounts
3Deleted1GCSXSAUDREP150311 Joe Bloggs - there is a separate holdings in these bank accounts
4Deleted1GSXXSAUDREP150311 Joe Bloggs - there is a separate holdings in these bank accounts
5Deleted1OGSXOAUDREP150311 Joe Bloggs - there is a separate holdings in these bank accounts
6DeletedWSTBFAAUDREP150311 Joe Bloggs - there is a separate holdings in these bank accounts
7DeletedWTINCAAUDREP150311 Joe Bloggs - there is a separate holdings in these bank accounts
INVESTIGATION
 
Hiker, this is awesome. This is exactly what i required, you can see how manual this task would have been previously. You have reduced 1.5hrs of my worktime

Thanks for all your help and time on this task. :)
 
Upvote 0

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,224,551
Messages
6,179,476
Members
452,915
Latest member
hannnahheileen

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