How to copy a column from multiple csv-files and paste into another Excel file?

AntonV

New Member
Joined
Mar 27, 2010
Messages
23
Hello,

I am trying to solve the following problem:

1. I have a number of csv-files, each has 5 columns of data.
input1.csv
input2.csv
......
inputN.csv


2. I want to
- do one operation on 3rd column of each file (IMABS(col(C)),
- place result into 6th column (first free column in my case) and then
- copy this new column into first free column of another excel file Output.xlsx

pasting from the 2nd row in each column of Output.xlsx (as the 1st rows will have titles in them)


To summarise: I want 6th column of each input.csv file in SourceFolder copied into separate column of output.xlsx file

I should be ok with writing code for copying and pasting within one file, but what I don't know is how:
1) to open multiple files from a specific folder (Sourcefolder)
2) Copy and Paste data from one file into another file


Any help with this issue is greatly appreciated.
Thanks
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,215,446
Messages
6,124,904
Members
449,194
Latest member
JayEggleton

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