PC Review


Reply
Thread Tools Rate Thread

Changing column names and automating data merge

 
 
rjr
Guest
Posts: n/a
 
      7th Oct 2006
Hello, Excel 2003.
My problem is I have data in Oracle on our mainframe and routinely download
this data into excel format.
I then copy and paste this data into the worksheet that I use.
The headers of each one are completely different and I'm looking to automate
the process and import all the data from one to the one I use.
I am also using JWalk data form and there is some calculated data in some of
the fields in the worksheet I'm importing into. I usually use JWalk and use
the "New" feature to generate blank records for as many rows as I'm going to
import.

I could use help with a formula that would allow me to take each column from
the worksheet I'm going to import from (always the same header) and import
that new data into the existing data (always to the same header) and place
it at the bottome of the worksheet's existing data. In the example Col 2 for
SSN would not be exported as it's not used anymore. So it would have to go
to Col 1 "Fname" and select all entries in that column and then move it to
"ERFname" and paste it after the existing data. THen I would like it to do a
sort by ID number so I could compare duplicates and remove the newer ones.

Col 1 Col 2 Col 3 Col 4 export to
Col1 Col2 Col3 Col 4
Fname SSN Telephone Lname
ERFname Telephone ERLname ETC.......

Any ideas or help would be greatly appreciated.
Bob Reynolds


 
Reply With Quote
 
 
 
 
Tom Ogilvy
Guest
Posts: n/a
 
      7th Oct 2006
Col A Col B Col C Col D
Fname SSN Telephone Lname
Data . . .
Data . . .
Data . . .


Col M Col N Col O
Fname Telephone Lname
Blank . . .

Use the Data=>Advanced Filter
With columns A as the source

M1:O1 as the destination

No criteria, Select copy to

Turn on the macro recorder to get the code while you do it manually.

then

set rng = Range("M1").CurrentRegion
set rng = rng.offset(1,0).Resize(rng.rows.count-1)
rng.copy Worksheets("Data").Cells(rows.count,1).End(xlup)(2)

and So forth

--
Regards,
Tom Ogilvy



"rjr" <(E-Mail Removed)> wrote in message
news:SVMVg.19254$(E-Mail Removed)...
> Hello, Excel 2003.
> My problem is I have data in Oracle on our mainframe and routinely
> download this data into excel format.
> I then copy and paste this data into the worksheet that I use.
> The headers of each one are completely different and I'm looking to
> automate the process and import all the data from one to the one I use.
> I am also using JWalk data form and there is some calculated data in some
> of the fields in the worksheet I'm importing into. I usually use JWalk and
> use the "New" feature to generate blank records for as many rows as I'm
> going to import.
>
> I could use help with a formula that would allow me to take each column
> from the worksheet I'm going to import from (always the same header) and
> import that new data into the existing data (always to the same header)
> and place it at the bottome of the worksheet's existing data. In the
> example Col 2 for SSN would not be exported as it's not used anymore. So
> it would have to go to Col 1 "Fname" and select all entries in that column
> and then move it to "ERFname" and paste it after the existing data. THen I
> would like it to do a sort by ID number so I could compare duplicates and
> remove the newer ones.
>
> Col 1 Col 2 Col 3 Col 4 export to Col1
> Col2 Col3 Col 4
> Fname SSN Telephone Lname ERFname Telephone ERLname
> ETC.......
>
> Any ideas or help would be greatly appreciated.
> Bob Reynolds
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automating data to export into a Word Merge Doc =?Utf-8?B?S1JC?= Microsoft Access 3 7th Mar 2007 07:49 AM
How do I get consecutive names in a multil column mail merge doc? =?Utf-8?B?TCBHYWxsbw==?= Microsoft Word Document Management 1 17th Oct 2005 12:30 AM
Changing column names =?Utf-8?B?Q2F0aHkgUw==?= Microsoft Excel New Users 1 19th Feb 2005 11:05 AM
changing column names eyecalibrate Microsoft Excel Discussion 1 28th Mar 2004 04:01 PM
changing column names eyecalibrate Microsoft Excel Discussion 2 28th Mar 2004 01:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:17 PM.