excel formating help

I need help.

I need to take files (csv, excel) have them and formatted them into a pre defined format. After the file gets formatted I need to create a report.

the input files are huge, 500,000+ records with 26 columns of data.

is there an easier way of dealing with this kind of data?

I can do this manually but it is taking me hours just to work on one file if excel does not crash.

Any ideas? Programs? anything?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'm sure there is a VBA solution for this. Specifically how do you want your data formatted? Could you provide a small sample?

leebaskinownerAuthor Commented:
so. this is an example of the columns I need. the incoming tab is where I copy the incoming file too. the format is the output that I need from the data gathered from the incoming file.

After I complete the info gathering for the 2ed tab, I have to export it out to a csv and upload it into another system.... I get a report and have to do the process again with more information.... its a pain.
Rodney EndrigaData AnalystCommented:
You can try this code:

Sub ee_CopyData2SpecificCOLS()
Dim ws1 As Worksheet, ws2 As Worksheet, l As Long, rng As Range
Application.ScreenUpdating = False
Set ws1 = Sheets("IncommingFile")
Set ws2 = Sheets("ScrubFormatFile")
l = ws1.Cells(Rows.Count, 1).End(xlUp).Row

With ws1
    ws2.Range("A2:A" & l).FormulaR1C1 = "=" & .Name & "!RC1"
    ws2.Range("D2:D" & l).FormulaR1C1 = "=" & .Name & "!RC17"
    ws2.Range("E2:E" & l).FormulaR1C1 = "=" & .Name & "!RC18"
    ws2.Range("H2:H" & l).FormulaR1C1 = "=" & .Name & "!RC21"
    ws2.Range("J2:J" & l).FormulaR1C1 = "=" & .Name & "!RC23"
    ws2.Range("K2:K" & l).FormulaR1C1 = "=" & .Name & "!RC24"
    ws2.Range("L2:L" & l).FormulaR1C1 = "=" & .Name & "!RC25"
    ws2.Range("M2:M" & l).FormulaR1C1 = "=" & .Name & "!RC19"
    ws2.Range("N2:N" & l).FormulaR1C1 = "=" & .Name & "!RC12"
    ws2.Range("Q2:Q" & l).FormulaR1C1 = "=" & .Name & "!RC3"
    ws2.Range("R2:R" & l).FormulaR1C1 = "=" & .Name & "!RC12"
    ws2.Range("S2:S" & l).FormulaR1C1 = "=" & .Name & "!RC11"
    ws2.Range("T2:T" & l).FormulaR1C1 = "=" & .Name & "!RC9"
    ws2.Range("U2:U" & l).FormulaR1C1 = "=" & .Name & "!RC8"
End With
With ws2
    l1 = .Cells(Rows.Count, 1).End(xlUp).Row
    Set rng = .Range("A2:V" & l1)
End With
rng.PasteSpecial xlPasteValues
ws2.Cells(1, 1).Select

Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub

Open in new window

Based off your TEMPLATE file, it will bring over all the data from 1st sheet (IncommingFile) to the 2nd sheet (ScrubFormatFile) in the specific columns you set in your formula. It will also remove those formulas so it is just the data that is captured after the macro processes.

Let me know if this works for you.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.