Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default How to combine data from 100 similar Excel files

Am using Excel 2007 version.

I had posted an excel file (with 10 questions with 4 options for each
question, drop down option is used) to about 100 customers to fill the
answers and post it back to me.

So, now i have 100 excel files. I need to combine all those into one excel
sheet so that it will be easy to analyze, segregate and for further
processing.

So how to combine the data available in these excel sheets.

Please explain the solution 'clearly' such that a layman can understand.

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default How to combine data from 100 similar Excel files

Hi,

First put them in a single directory. Put this code in a new workbook by
using Alt+F11 to open VB editor. Righjt click @This Workbook' and insert
module. and paste the code in on the right. It will open every workbook in
your drrectory, copy sheet1 and paste it to your new workbook.

Sub LoopThrough()
Application.DisplayAlerts = False
'Change this to your directory
myPath = "C:\"
ActiveFile = Dir(myPath & "*.xls")
Do While ActiveFile < ""

Workbooks.Open Filename:=myPath & ActiveFile
'Here is the line that calls the macro below, passing the workbook to it
DoSomething ActiveWorkbook
ActiveWorkbook.Close savechanges:=False
lastrow = Sheets("Sheet1").Cells(Cells.Rows.Count, "A").End(xlUp).Row
Range("A" & lastrow + 1).PasteSpecial
ActiveFile = Dir()
Loop
Application.DisplayAlerts = True
End Sub

Sub DoSomething(Book As Workbook)

Sheets("Sheet1").Range("A1:A10").Copy

End Sub


Mike

"Satish" wrote:

Am using Excel 2007 version.

I had posted an excel file (with 10 questions with 4 options for each
question, drop down option is used) to about 100 customers to fill the
answers and post it back to me.

So, now i have 100 excel files. I need to combine all those into one excel
sheet so that it will be easy to analyze, segregate and for further
processing.

So how to combine the data available in these excel sheets.

Please explain the solution 'clearly' such that a layman can understand.

Thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,123
Default How to combine data from 100 similar Excel files

hi Satish

See also
http://www.rondebruin.nl/merge.htm


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Satish" wrote in message ...
Am using Excel 2007 version.

I had posted an excel file (with 10 questions with 4 options for each
question, drop down option is used) to about 100 customers to fill the
answers and post it back to me.

So, now i have 100 excel files. I need to combine all those into one excel
sheet so that it will be easy to analyze, segregate and for further
processing.

So how to combine the data available in these excel sheets.

Please explain the solution 'clearly' such that a layman can understand.

Thanks in advance

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to combine data files with different fields? pavil New Users to Excel 1 January 13th 08 08:09 AM
Combine two Excel Files Just Me Excel Discussion (Misc queries) 1 November 17th 06 09:34 PM
CAN I CLUB SIMILAR EXCEL FILES WITHOUT COPYING AND PASTING NAINAN JOSEPH Excel Discussion (Misc queries) 2 November 11th 06 06:56 AM
How do I combine quantities of similar line items Joshua Hullender Excel Discussion (Misc queries) 2 January 3rd 06 11:42 PM
Combine query to count products with similar names pomalley Excel Worksheet Functions 8 April 22nd 05 02:15 AM


All times are GMT +1. The time now is 05:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"