Importing Data From Multiple Documents Into Single File

Sep 28, 2009

I have thousands of Excel files, each with a generic names (i.e. 2009092812163503.xls)

Each of them contain a header with contains column titles like Company Name, Executive Contact, Address, etc and then a single row of data for a single company.

I want to be able to task excel to extract all the data in the second line and enter them all into a single spreadsheet for further work.

We're talking 30,000+ unique files here, what would be the best way to approach this?

View 10 Replies


ADVERTISEMENT

Importing Data From Multiple Word Forms Into A Single Spreadsheet With Vba

Mar 29, 2009

I would like to use a vba procedure/procedures to achieve the following:
I have a folder with many Word2003 forms in and I want to save just the data from each form and then import the data into an Excel spreadsheet.

Currently I am opening each .doc file in turn, saving just the data to a new plain text (comma separated file) in a different folder and am unable code searching that folder for all the text files and importing them into the spreadsheet.
I have a two part question to my current approach:

1) I am 99% there with the first part (opening and converting the forms) with the following code having followed advice from another thread but I need Word open and not showing an open document. Is it possible to add code to take care of opening Word in the background and close it again after so the process is fully automated?:

View 3 Replies View Related

Importing Text File Displays As A Single Row And Not Table

Dec 1, 2012

This is the text file: Video.txt. I import it using the following settings: "Delimited" as Original data type and "Comma" as Delimiters, with all the other settings left to default. Everything is imported into a single row. It is supposed to be a table, with Stk_No, Title, Certificate, up to In_Stk as column titles; then, all the rest should come below the column titles as rows (they seem to be separated by 5 commas). Am I missing a setting or there is a problem with the text file?

View 2 Replies View Related

Copying Data From Multiple Sheets To Single Sheet In New Excel File

Feb 6, 2012

I have an master excel file with 20 sheets with names x,y,z,a,b,c,f,.... Each and every sheet has data which start from Row 7 and Column 2. Now i need to consolidate this data in one sheet in another excel file.

Consolidation should be like

Suppose X sheet has 20 rows and 4 columns of data which starts from Row 7 and Column 2, this data has to be copied and pasted in my new excel file copied on my desktop. Now first 20 rows are occupied in new excel file.

Now code should move on to master excel file Sheet Y which has 45 rows and 4 columns of data which starts from Row 7 and Column 2,this data has to be copied and pasted in my new excel file from row 21, which means Master excel file sheets has to be clubbed to one consolidated excel file.

In All the sheets in Master file Data starts from Row 7 and column 2.

Data range varies row wise in each sheet but column length is fixed to 4.

View 9 Replies View Related

Capture Name Of Data File When Importing Into Another File

Aug 7, 2007

I am using the following code to browse to a CSV file and import it into my current workbook. How can I “capture” the name of the text file (myFile) for future use?

myFile = Application.GetOpenFilename("All Files,*.csv")
If myFile = False Then
Exit Sub
End If

' Open file
With ActiveSheet.QueryTables.Add(Connection:="TEXT;" & myFile, Destination:=Range("A1"))
.Name = "DATA"
.FieldNames = True...............

View 9 Replies View Related

Importing Data From External File

Apr 13, 2009

I have bit of code that opens an external excel file (call it the source workbook), grabs certain data, copies the data to other excel file (call it the destination workbook), and then closes. I have most of the code completed but am running into an issue with how to grab certain data from the source workbook and copying it to destination workbook.

I want the code to read the data in the source workbook line-by-line.

For each line that is read, I want to copy part of that data (value in column A and column B) to column A and column B of destination workbook only if the value in column D is equal to “Block”. For column C and column D, I want to do some form of lookup, being I want the code to look at each line of data until it finds corresponding line in which column A = “60612105” and in which column B = the value in B. Once this line is found, copy the value in C to column C of destination workbook and value in D to column D of destination workbook.

I have attached two files. First file is the import file (destination workbook) which has two tabs; (1) import tab (2) desired result. Second file is the raw data file (source workbook). Hopefully this makes since.

View 8 Replies View Related

Importing A CSV File And Sorting The Data

Sep 12, 2008

I have a group of CSV files that I will need to periodically import and sort in Excel.

The CSV files will contain one column I wish to use (It is the first one and the rest can be ignored or imported) and sort the desired data based upon the existance of a particular bit of text. Each entry will either be just a username or a username with a '-label' appended to it so for instance each of the CSV files might contain:

bob
fred
mark-label
ted
angie-label

Basically I want to seperate the names with the -label from the ones that do not have the -label. Doing searches, I was able to get part way using the code from this thread:

[url]

But am running into problems trying to modify it to suit my needs. Is there an easy way to accomplish this? I'm not very good with VB so that hasn't helped me. It would be nice to move the sourted output to seperate columns if that is possible.

View 9 Replies View Related

Importing Data From Another Excel File Automatically

Mar 4, 2007

I am trying to have the total (cell e78) from one of my own excel files automatically filled into a cell in a different excel file when the number of that file is typed into a third cell.
i.e. if the total on Ticket 4126 in cell e78 is $4500, then when I type 4126 into the Ticket # cell on my seperate Invoice I'd like it to fill in the third cell under Amount as $4500.
Is this possible?

View 10 Replies View Related

Importing Selected Data From CSV File To Excel?

Sep 17, 2013

is it possible to import just a portion of a csv file into my excel workbook? For example:

My csv file has data from 2010-2015. I want to somehow import only data between 2013-2015 from the csv file into my excel workbook every time I click refresh.

I cannot delete data from the source file because many other people are using the same file. Is there some sort of "SQL" for excel that makes it possible to trim csv file?

View 1 Replies View Related

Importing Data Into Excel With HTML File

Feb 15, 2012

I'm working on creating a custom HTML report with javascript that I will be using to import in to excel to populate some graphs. Basically everything is working, except if I use javascript to show me a value.

When I use Import Data from Web via excel, everything gets imported except for the javascript part of the html doc.

An example of the html file (stripped down to nothing but 3 peices of data): [URL]

View 6 Replies View Related

Selecting And Then Importing Data From Huge Tab Text File To Excel

Apr 11, 2012

I wanted to see if there is a VBA code to do the following :

a) Select a TabText Delimited file based on a criteria
b) Import the Selected Data to Excel

I have the vba code where I can open the tab text delimited file in excel, use a selection criteria and then copy the data into excel. But I am having problems with the case where the Tab Text Delimited file exceeds the row limit that excel currently has and wanted to see if the data import can be done without opening the text file into excel at all.

Here is my current query :

Sub TEST()
' TEST Macro

Workbooks.OpenText Filename:="E:Testdata.txt"
ActiveSheet.Range("$A$1:$B$1048576").AutoFilter Field:=1, Criteria1:="1234"
Range(Selection, Selection.End(xlToRight)).Select

[Code] .......

View 3 Replies View Related

Macro - Importing CSV File Into Specified Worksheet Overwriting Existing Data?

Sep 5, 2013

- Construct a macro to import a csv-file to my worksheet named "Info". The data in the .csv-file should start in row A5 in my worksheet.

- If the worksheet "Info" already has data, I want to overwrite the existing data with the new data starting in row A5

The directory of the csv-file is C:Testmycsvfile.csv

View 3 Replies View Related

Out Of Memory While Importing Data From CSV File To Create Pivot Cache

Dec 20, 2013

We are trying to create pivot cache from an external .csv file.

This works fine when the csv file is small (~500 mb).

Attaching sample code for reference -

Code:
Dim cConnection As ADODB.Connection
Dim rsRecordset As ADODB.Recordset
Dim pvtCache As PivotCache
Dim pvtTable As PivotTable
Dim SQL As String

''Creating ADODB connection object

[Code] ...........

View 5 Replies View Related

Importing CSV File Into Excel With Approximately 1.9 Million Rows - Not All Data Being Imported

Feb 14, 2014

I have a number of large CSV files with approximately 1.9 million rows, (this is more then excel can bring in). I typically have to import/delimit the files when brining them into excel. However, when I try this I get the message not all data imported. I would like to be able to split the records in the csv file to multiple tabs in the excel woorkbook when doing the import/delimit but do not know how to accomplish this. The delimit of the data varies each time due to the nature of the data so doing a macro is more trouble to create each time. Currently I am having to open the csv file in notepad and split it up into multiple files then import each new file seperately.

View 4 Replies View Related

Importing Data From Multiple Tabs

May 6, 2009

I have an excel spread sheet with about 300 tabs. each sheet has the same column fields..I need to pull certain column fields ( the same fields ) out of each tab and export them to another spread sheet.

View 6 Replies View Related

Importing Data From Multiple Worksheets

Feb 23, 2012

Im trying to import data from multiple worksheets. The data from these worksheets are scattered throughout the different work sheets.

I would like to extract the specific data from each worksheet into a master template that ive created. 80% of the worksheets templates match my master template.

Is there any way to do this without taking 1 week to complete?

View 1 Replies View Related

Links To A File In My Documents

Aug 21, 2009

I have a template that I wish to distribute to others. It will link to a second file (also distributed by me) that will be in each users' "My documents" folder (or "Documents" in Vista). I currently have the template set to look at "C:" as that is common for everyone. Turns out that creates other problems. However, now each user's file location will be unique due to the path of their documents folder

Question, is there a robust way to automate the finding of the linked file in the template without having each user "relocate" it? Reason is the template will be updated frequently and I want to ease their pain by not making them go through this every time.

View 9 Replies View Related

Macro For Importing Data From Multiple Webpages

Nov 25, 2013

Couple of small queries that I have regarding importing data into excel from multiple webpages?

I am trying to automatically import data from this site, example page:

Greyhound Race and Breeding

The page numbers go up in increments of one, so the next one will be 3473265, 3473266, 3473267, etc

The problem is that the macro runs but nothing happens.

Further info -

I need this data to import all into one [very long!] sheet

Sub Macro1()
'
'Macro1 Macro
'
'For i = 3473264 To 3473265
With ActiveSheet.QueryTables.Add(Connection:= _

[Code] ,.........

View 6 Replies View Related

Importing Data From Multiple Text Files

Nov 22, 2006

I have about 1200 text files with data regarding different machines.These file contain a line called 'Validation date" and also the programe number on different line.

I need a macro which will extract this date for each program number and write in excel in two columns like program number and validation date.

I have tried with some of the macro help available on this site,but I have to do this one at a time.The time required doing this way is same as going in each text file and copy/pasting in excel.Is it possible to automate this process.

View 9 Replies View Related

Split TXT File To Word Documents

Mar 31, 2012

Below code is for splliting text file into multiple excel worksheet. I want to modify it to splitting text file into different msword documents in folder. Is it possible to change the code

Sub LargeFileImport()

'Dimension Variables
Dim ResultStr As String
Dim FileName As String
Dim FileNum As Integer
Dim Counter As Double
'Ask User for File's Name
FileName = InputBox("Please enter the Text File's name, e.g. test.txt")

[Code] ........

View 3 Replies View Related

Save A File As Multiple Filenames By Single Macro?

Aug 15, 2006

The reports I build work from a basic template with 10 or so separate, slightly different versions. In order to make them I currently update the data in the template and then click on "File>Save As..." ten times, renaming the file as appropriate.

Example:

Overall Report for yyyy/mm/dd
Partner A report for yyyy/mm/dd
Partner B report for yyyy/mm/dd
ad nauseum..

Is there an easy macro that could save and rename my file multiple times? It would need to accept manual input for the date. Preferably it would be something that I could easily tweak to change the filenames and number of reports saved as this is most of what I do.

View 6 Replies View Related

Macro To Append Multiple Xls File In Single Workbook From Specified Path

Jan 25, 2010

I need a macro to do the following

1.Get list of .xls files from specified folder.

2.Append the files in new workbook in same folder.

Ex:
D:/users/excel/Sample_sheet1.xls
D:/users/excel/Sample_sheet2.xls
D:/users/excel/Sample_sheet3.xls

I want to get the list of Sample_*.xls and
create Sample.xls master file which adds the above three .xls as sheets in it.

Actually my macro as below

View 10 Replies View Related

Pull Data From Multiple Cells And Concatenate In Single Cell Using Multiple Criteria

Aug 31, 2012

I have a worksheet entitled 'Data'. In this worksheet there is a table consisting of 4 columns plus relevant data:

TABLE 1:

Project
Benefit Type
Delivered or Enabled
Benefit

PJ1
Financial
Delivered
Saving of $4M over 24 months.

[code]....

I have been trying to create a formula that will enable me to pull data from the 'benefit' column(column D) so that the cell contents populate in a single cell in a table in a different worksheet.

TABLE 2:

Financial - Delivered
Financial - Enabled
Tech - Delivered
Tech - Enabled
Green - Delivered
Green - Enabled

[code]....

So, as an example, I am hoping that a formula can be created which pulls the text from relevant cells in column D when criteria from columns A, B and C are met e.g. Tech benefits that are Delivered in PJ2 would populate cell E3 ('Tech -Enabled') in Table 2 with:

Continued maintenance of hardware.

Increased capacity.

View 1 Replies View Related

Central Glossary: Feed Multiple Documents

Aug 26, 2006

a while back I posted Central Glossary to feed multiple documents to put a glossary at the end of a Word doc. Fabulous help and got it all sorted. Now I'm trying to do it at the end of an Excel w/b.

View 4 Replies View Related

Getting Data From Collection Of Workbooks Into 1 Single Master File

Jan 14, 2014

I'm trying to collect specific data from a collection of different (.xls) files into 1 master file using the following code (which runs in the master file):

Code:
Sub FolderPick()
Set fso = CreateObject("Scripting.FileSystemObject")
With Application.FileDialog(msoFileDialogFolderPicker)

[Code].....

I'm having trouble with the Name-variable in the 'red line'. This variable is set in the 'purple lines' however, the code (which I got online) keeps adding ".pdf" to the name.

I think it has to do with the settings of the 'purple/underlined line' but I don't know if this is true and if so, how to change it.

View 2 Replies View Related

SUMPRODUCT With Multiple Criteria: Count The Number Of Documents

Nov 3, 2009

I have attached a spreadsheet with a small indicative data set to assist in understanding. I am trying to count the number of documents each individual has assigned to them that are not yet 'completed' (ie REGISTERED, IN WORK, REVIEWED). The problem I am trying to overcome is that the document state can be 1 of several values indicated in the same column.

I have tried using this SUMPRODUCT formula:
=SUMPRODUCT((($E$2:$E$11="REGISTERED")+($E$2:$E$11="IN WORK")+($E$2:$E$11="REVIEWED")*($B$2:$B$11="Jones")))
but it is generating incorrect values!

Specifically:
- Jones shoulld return 1
- Franks should return 3
- Smith shoudl return 0

View 4 Replies View Related

Calling Close Event When Multiple Documents Closed

Jun 18, 2008

I'm trying to create a macro that will save backup copies of documents that have changed when a user closes them. I created an add-in and put a Workbook_BeforeClose sub in "ThisWorkbook" that saves a copy of the document in a temp location on the hard drive.

If I have three Excel documents opened and each one has changes and I close Excel (with the "big red X") it only seems to call the Workbook_BeforeClose once backing up one of the files. If I use the "Close Window" (the "little X") it doesn't call that event at all.

Is there a better event to use or a better way to backup these files when closing them or Excel?

View 9 Replies View Related

Copy Data From Selective Rows From Different Files To A Single File?

Jun 8, 2014

I would need only the first row data to be copied into a master file in column A (row A from each file to column A, column B.... etc - basically transpose value into master file)

View 1 Replies View Related

Consolidating Certain Information Within Many Data Files Into Single Tab In Master File

Feb 14, 2013

I'm a relatively competent VBA user to a macro recorder and basic editing of custom code level but fall short with writing custom code and don't have much used or proven code I can copy from.

Problem: I'd like to automate a process whereby consolidating certain information within many data files (possibly up to 500) into a single tab within a master file.

At the moment there are only a few data files which are manually consolidated by way of manual links but going forward it will increase significantly, hence the need to automate.

I need to consolidate the following 5 cells from each data file A1, A2, A5, A7, A8 (vertical) into a single row within the master file across 5 columns (horizontal), i.e. each data file will populate 1 row in the master file, one below the other. If there are 500 data files there will be 500 rows of data in the master file.

The data files will be saved in a central location on our server and the master file will sit outside this folder, possibly in a subfolder.

Something which would be handy is a link in the master file to each data file, i.e. if I click on a data row in the master file it would jump to the source data file.

View 3 Replies View Related

Combine Lab Daily Assay Data Into Single Easily Manageable File

Feb 13, 2014

How to Collate and combine lab daily assay data into a single easily manageable file.

Currently i have a spreadsheet for every days assay results. Now this should be combined into monthly and yearly data.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved