G goodfriend40 New Member Mar 19, 2011 #1 i have as many as 50 notepads containg data , i want to merge data in excel sheet . is it possible, please help
i have as many as 50 notepads containg data , i want to merge data in excel sheet . is it possible, please help
Hui Excel Ninja Staff member Mar 19, 2011 #2 Are they all text files ? Are they all in the same format ? If the answer is yes Here is a quick and old school method Open a CMD window change directory to where your files are Dir *.txt > tmp.txt /B Change the *.txt to suit your files names edit tmp.txt so that it reads (all the files are listed so it wont take long) copy File1.txt + File2.txt + File3.txt ... + Filex.txt newfile.txt save as tmp.bat run tmp.bat open excel and import newfile.txt Have a coffee and wait until the programmers write some VBA code
Are they all text files ? Are they all in the same format ? If the answer is yes Here is a quick and old school method Open a CMD window change directory to where your files are Dir *.txt > tmp.txt /B Change the *.txt to suit your files names edit tmp.txt so that it reads (all the files are listed so it wont take long) copy File1.txt + File2.txt + File3.txt ... + Filex.txt newfile.txt save as tmp.bat run tmp.bat open excel and import newfile.txt Have a coffee and wait until the programmers write some VBA code
Hui Excel Ninja Staff member Mar 19, 2011 #4 Glad it helped It's one of my favorite import techniques old school, but very quick and always available For completeness there are other techniques some of are described here http://blogs.office.com/b/microsoft-excel/archive/2011/02/17/manually-paste-text-into-a-workbook-no-way.aspx and other are described in the comments
Glad it helped It's one of my favorite import techniques old school, but very quick and always available For completeness there are other techniques some of are described here http://blogs.office.com/b/microsoft-excel/archive/2011/02/17/manually-paste-text-into-a-workbook-no-way.aspx and other are described in the comments
G goodfriend40 New Member Mar 19, 2011 #5 thanx once again.now i want further help.my 50 note pads are keep updating every 15 minutes with the help of some other software.now i want to transfer only new data to new file created as above .is that possible
thanx once again.now i want further help.my 50 note pads are keep updating every 15 minutes with the help of some other software.now i want to transfer only new data to new file created as above .is that possible
Hui Excel Ninja Staff member Mar 19, 2011 #6 "How often do you want to do this?" was the other question I forgot to ask. If the file names don't change you could write a macro to import them and append them to the end of each other on a sheet a good example is here: http://excel.tips.net/Pages/T003148_Importing_Multiple_Files_to_a_Single_Workbook.html or http://www.mrexcel.com/archive/VBA/3748.html Or you could look at using an SQL import of text files and then comparing the data in Excel http://blogs.office.com/b/microsoft-excel/archive/2008/04/30/append-multiple-text-files-into-a-worksheet-without-code.aspx This will require some automation/macros to shift the data around prior to and after an import
"How often do you want to do this?" was the other question I forgot to ask. If the file names don't change you could write a macro to import them and append them to the end of each other on a sheet a good example is here: http://excel.tips.net/Pages/T003148_Importing_Multiple_Files_to_a_Single_Workbook.html or http://www.mrexcel.com/archive/VBA/3748.html Or you could look at using an SQL import of text files and then comparing the data in Excel http://blogs.office.com/b/microsoft-excel/archive/2008/04/30/append-multiple-text-files-into-a-worksheet-without-code.aspx This will require some automation/macros to shift the data around prior to and after an import
G goodfriend40 New Member Mar 19, 2011 #7 Thanx for reply. i have to do this process frequently as data keep coming in every minute 5 days a week. so i have to the process say every 15 minutes
Thanx for reply. i have to do this process frequently as data keep coming in every minute 5 days a week. so i have to the process say every 15 minutes