J
jamiender
Hi All
Ive recently got a new job, and I really want to impress my boss by
automating some of the excel work we do - which is where I discovered
macros! Id really appreciate if you guys (and girls) can help me out
here.....
Basically, each day I get an excel sheet like this:
********************************************************************
KAMAL COMPUTERS - London
LC23658 4012250 Eads(Euro Aeronautic Defens 62,400
10/05/2006 01/06/2006
ARGOS GUS - Singapore
LC23493 4121305 Boehler-Uddeholm - Npv 4,000
18/05/2006 26/05/2006 LC24235 6177997 Manulife Financial
Corp - C 30,000 15/05/2006 19/06/2006 LC24406
6624608 National Australia Bank - N 200,000 02/06/2006
13/07/2006 LC24407 6624608 National Australia Bank - N
200,000 02/06/2006 13/07/2006 LC24438 7111314 Inditex
(Ind.De Diseno Text 620,000 21/07/2006 21/07/2006
LC24439 7111314 Inditex (Ind.De Diseno Text 620,000
21/07/2006 21/07/2006 CITIGROUP - London
LC24396 B01Y4N1 Group 4 Securicor - Ord Gbp 16,500
07/06/2006 11/07/2006
*******************************************************************
These are the contents of cells all in column A (but each consecutive
row) i.e "LC23493 4121305 Boehler-Uddeholm - Npv
4,000 18/05/2006 26/05/2006" is the cell content of A4.
As you can see there are three companies (Kamal computers, argos and
citigroup) and under each company there are different references and
dates. What I need to do is split the references and dates up into
different columns, but not the company names
I have tried doing "text to columns" but that doesnt work because it
will split the references up (ie. put LC23493 and 4121305 etc into
consecutive colums) but it also the company name up into columns i.e.
CITIGROUP becomes CITIGR in A1 and OUP in B1.
Basically, whenever the row begins with the LC reference, I need that
row to be split up - but the row with the company names need to not be
split up.
Any ideas?
Thanks so much!!!
Jamie
Ive recently got a new job, and I really want to impress my boss by
automating some of the excel work we do - which is where I discovered
macros! Id really appreciate if you guys (and girls) can help me out
here.....
Basically, each day I get an excel sheet like this:
********************************************************************
KAMAL COMPUTERS - London
LC23658 4012250 Eads(Euro Aeronautic Defens 62,400
10/05/2006 01/06/2006
ARGOS GUS - Singapore
LC23493 4121305 Boehler-Uddeholm - Npv 4,000
18/05/2006 26/05/2006 LC24235 6177997 Manulife Financial
Corp - C 30,000 15/05/2006 19/06/2006 LC24406
6624608 National Australia Bank - N 200,000 02/06/2006
13/07/2006 LC24407 6624608 National Australia Bank - N
200,000 02/06/2006 13/07/2006 LC24438 7111314 Inditex
(Ind.De Diseno Text 620,000 21/07/2006 21/07/2006
LC24439 7111314 Inditex (Ind.De Diseno Text 620,000
21/07/2006 21/07/2006 CITIGROUP - London
LC24396 B01Y4N1 Group 4 Securicor - Ord Gbp 16,500
07/06/2006 11/07/2006
*******************************************************************
These are the contents of cells all in column A (but each consecutive
row) i.e "LC23493 4121305 Boehler-Uddeholm - Npv
4,000 18/05/2006 26/05/2006" is the cell content of A4.
As you can see there are three companies (Kamal computers, argos and
citigroup) and under each company there are different references and
dates. What I need to do is split the references and dates up into
different columns, but not the company names
I have tried doing "text to columns" but that doesnt work because it
will split the references up (ie. put LC23493 and 4121305 etc into
consecutive colums) but it also the company name up into columns i.e.
CITIGROUP becomes CITIGR in A1 and OUP in B1.
Basically, whenever the row begins with the LC reference, I need that
row to be split up - but the row with the company names need to not be
split up.
Any ideas?
Thanks so much!!!
Jamie