Importing a large .csv into Excel,





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I was trying to import a large .csv file into Excel. The file has close to 4 million rows and 329 columns so it far exceeded Excel's 65536 1M row limit. I found a VB script online to import text files into Excel where once the row limit was exceeded the script would create a new worksheet till the total rows in all worksheets equal the total rows in the original text file.



Sub ImportLargeFile()
'Imports text file into Excel workbook using ADO.
'If the number of records exceeds 65536 then it splits it over more than one sheet.

Dim strFilePath As String, strFilename As String, strFullPath As String
Dim lngCounter As Long
Dim oConn As Object, oRS As Object, oFSObj As Object

'Get a text file name
strFullPath = Application.GetOpenFilename("Text Files (*.csv),*.csv", , "Please select text file...")

If strFullPath = "False" Then Exit Sub 'User pressed Cancel on the open file dialogue

'This gives us a full path name e.g. C:tempfolderfile.txt
'We need to split this into path and file name
Set oFSObj = CreateObject("SCRIPTING.FILESYSTEMOBJECT")

strFilePath = oFSObj.GetFile(strFullPath).ParentFolder.Path
strFilename = oFSObj.GetFile(strFullPath).Name


'Open an ADO connection to the folder specified
Set oConn = CreateObject("ADODB.CONNECTION")
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & strFilePath & ";" & _
"Extended Properties=""text;HDR=Yes;FMT=Delimited"""

Set oRS = CreateObject("ADODB.RECORDSET")

'Now actually open the text file and import into Excel
oRS.Open "SELECT * FROM " & strFilename, oConn, 3, 1, 1
While Not oRS.EOF
Sheets.Add
ActiveSheet.Range("A1").CopyFromRecordset oRS, 65536
Wend

oRS.Close
oConn.Close

End Sub


However, when I run it in Excel 2007 I get the following error:



Run-time error '-2147217900 (80040e14)':

Syntax error in FROM clause.


On clicking debug it points to this line



    oRS.Open "SELECT * FROM " & strFilename, oConn, 3, 1, 1


I have non-existent VB skills so any help here would be appreciated.



Thanks!



Edit: I found this http://support.microsoft.com/kb/193514 but this doesn't work in this case, in fact, I am not even sure where to place the square brackets. Any place I put the brackets in that line, Excel refuses to give me the run option.



Edit 2: I tried running this on a different machine which just has a lot more juice in it to make memory not an issue. This computer also has Office 2013 on it (no Office 365 with it though). I ran the same macro on that and it gave the following error.



Run-time error '3706':
Provider cannot be found. It may not be properly installed.


When I click Debug it points to this line



oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & strFilePath & ";" & _
-> "Extended Properties=""text;HDR=Yes;FMT=Delimited"""









share|improve this question

























  • I don't know about vba either, but that SELECT part is SQL, which I understand a bit more. Could you perhaps include the headers of your csv and where you got the vba script?

    – Jerry
    May 14 '13 at 15:58











  • Are headers different from columns? Forgive me if I sound obtuse, but VB really is completely alien to me.

    – user2382345
    May 14 '13 at 16:17











  • No no, that's perfectly fine to ask. By the headers, I mean the column names in your csv, if you have them. The MS support link you provided mentions that column headers/names in the file you're importing containing a dash cause this error. Conversely, you could import the file in MS access if you know how to use it a bit and export smaller pieces to excel. Before getting there though, I would like to see where you got this vba script, maybe there're some guidelines there.

    – Jerry
    May 14 '13 at 16:30











  • Try adding Debug.Print "SELECT * FROM " & strFilename and see what you get in the Immediate window (Ctrl+G in the VB Editor). does your filename have any spaces?

    – Tim Williams
    May 14 '13 at 16:36






  • 1





    If it does have spaces then you need to enclose the filename in in your SQL. oRS.Open "SELECT * FROM [" & strFilename & "]" blogs.technet.com/b/heyscriptingguy/archive/2005/05/24/…

    – Tim Williams
    May 14 '13 at 16:45




















0















I was trying to import a large .csv file into Excel. The file has close to 4 million rows and 329 columns so it far exceeded Excel's 65536 1M row limit. I found a VB script online to import text files into Excel where once the row limit was exceeded the script would create a new worksheet till the total rows in all worksheets equal the total rows in the original text file.



Sub ImportLargeFile()
'Imports text file into Excel workbook using ADO.
'If the number of records exceeds 65536 then it splits it over more than one sheet.

Dim strFilePath As String, strFilename As String, strFullPath As String
Dim lngCounter As Long
Dim oConn As Object, oRS As Object, oFSObj As Object

'Get a text file name
strFullPath = Application.GetOpenFilename("Text Files (*.csv),*.csv", , "Please select text file...")

If strFullPath = "False" Then Exit Sub 'User pressed Cancel on the open file dialogue

'This gives us a full path name e.g. C:tempfolderfile.txt
'We need to split this into path and file name
Set oFSObj = CreateObject("SCRIPTING.FILESYSTEMOBJECT")

strFilePath = oFSObj.GetFile(strFullPath).ParentFolder.Path
strFilename = oFSObj.GetFile(strFullPath).Name


'Open an ADO connection to the folder specified
Set oConn = CreateObject("ADODB.CONNECTION")
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & strFilePath & ";" & _
"Extended Properties=""text;HDR=Yes;FMT=Delimited"""

Set oRS = CreateObject("ADODB.RECORDSET")

'Now actually open the text file and import into Excel
oRS.Open "SELECT * FROM " & strFilename, oConn, 3, 1, 1
While Not oRS.EOF
Sheets.Add
ActiveSheet.Range("A1").CopyFromRecordset oRS, 65536
Wend

oRS.Close
oConn.Close

End Sub


However, when I run it in Excel 2007 I get the following error:



Run-time error '-2147217900 (80040e14)':

Syntax error in FROM clause.


On clicking debug it points to this line



    oRS.Open "SELECT * FROM " & strFilename, oConn, 3, 1, 1


I have non-existent VB skills so any help here would be appreciated.



Thanks!



Edit: I found this http://support.microsoft.com/kb/193514 but this doesn't work in this case, in fact, I am not even sure where to place the square brackets. Any place I put the brackets in that line, Excel refuses to give me the run option.



Edit 2: I tried running this on a different machine which just has a lot more juice in it to make memory not an issue. This computer also has Office 2013 on it (no Office 365 with it though). I ran the same macro on that and it gave the following error.



Run-time error '3706':
Provider cannot be found. It may not be properly installed.


When I click Debug it points to this line



oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & strFilePath & ";" & _
-> "Extended Properties=""text;HDR=Yes;FMT=Delimited"""









share|improve this question

























  • I don't know about vba either, but that SELECT part is SQL, which I understand a bit more. Could you perhaps include the headers of your csv and where you got the vba script?

    – Jerry
    May 14 '13 at 15:58











  • Are headers different from columns? Forgive me if I sound obtuse, but VB really is completely alien to me.

    – user2382345
    May 14 '13 at 16:17











  • No no, that's perfectly fine to ask. By the headers, I mean the column names in your csv, if you have them. The MS support link you provided mentions that column headers/names in the file you're importing containing a dash cause this error. Conversely, you could import the file in MS access if you know how to use it a bit and export smaller pieces to excel. Before getting there though, I would like to see where you got this vba script, maybe there're some guidelines there.

    – Jerry
    May 14 '13 at 16:30











  • Try adding Debug.Print "SELECT * FROM " & strFilename and see what you get in the Immediate window (Ctrl+G in the VB Editor). does your filename have any spaces?

    – Tim Williams
    May 14 '13 at 16:36






  • 1





    If it does have spaces then you need to enclose the filename in in your SQL. oRS.Open "SELECT * FROM [" & strFilename & "]" blogs.technet.com/b/heyscriptingguy/archive/2005/05/24/…

    – Tim Williams
    May 14 '13 at 16:45
















0












0








0








I was trying to import a large .csv file into Excel. The file has close to 4 million rows and 329 columns so it far exceeded Excel's 65536 1M row limit. I found a VB script online to import text files into Excel where once the row limit was exceeded the script would create a new worksheet till the total rows in all worksheets equal the total rows in the original text file.



Sub ImportLargeFile()
'Imports text file into Excel workbook using ADO.
'If the number of records exceeds 65536 then it splits it over more than one sheet.

Dim strFilePath As String, strFilename As String, strFullPath As String
Dim lngCounter As Long
Dim oConn As Object, oRS As Object, oFSObj As Object

'Get a text file name
strFullPath = Application.GetOpenFilename("Text Files (*.csv),*.csv", , "Please select text file...")

If strFullPath = "False" Then Exit Sub 'User pressed Cancel on the open file dialogue

'This gives us a full path name e.g. C:tempfolderfile.txt
'We need to split this into path and file name
Set oFSObj = CreateObject("SCRIPTING.FILESYSTEMOBJECT")

strFilePath = oFSObj.GetFile(strFullPath).ParentFolder.Path
strFilename = oFSObj.GetFile(strFullPath).Name


'Open an ADO connection to the folder specified
Set oConn = CreateObject("ADODB.CONNECTION")
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & strFilePath & ";" & _
"Extended Properties=""text;HDR=Yes;FMT=Delimited"""

Set oRS = CreateObject("ADODB.RECORDSET")

'Now actually open the text file and import into Excel
oRS.Open "SELECT * FROM " & strFilename, oConn, 3, 1, 1
While Not oRS.EOF
Sheets.Add
ActiveSheet.Range("A1").CopyFromRecordset oRS, 65536
Wend

oRS.Close
oConn.Close

End Sub


However, when I run it in Excel 2007 I get the following error:



Run-time error '-2147217900 (80040e14)':

Syntax error in FROM clause.


On clicking debug it points to this line



    oRS.Open "SELECT * FROM " & strFilename, oConn, 3, 1, 1


I have non-existent VB skills so any help here would be appreciated.



Thanks!



Edit: I found this http://support.microsoft.com/kb/193514 but this doesn't work in this case, in fact, I am not even sure where to place the square brackets. Any place I put the brackets in that line, Excel refuses to give me the run option.



Edit 2: I tried running this on a different machine which just has a lot more juice in it to make memory not an issue. This computer also has Office 2013 on it (no Office 365 with it though). I ran the same macro on that and it gave the following error.



Run-time error '3706':
Provider cannot be found. It may not be properly installed.


When I click Debug it points to this line



oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & strFilePath & ";" & _
-> "Extended Properties=""text;HDR=Yes;FMT=Delimited"""









share|improve this question
















I was trying to import a large .csv file into Excel. The file has close to 4 million rows and 329 columns so it far exceeded Excel's 65536 1M row limit. I found a VB script online to import text files into Excel where once the row limit was exceeded the script would create a new worksheet till the total rows in all worksheets equal the total rows in the original text file.



Sub ImportLargeFile()
'Imports text file into Excel workbook using ADO.
'If the number of records exceeds 65536 then it splits it over more than one sheet.

Dim strFilePath As String, strFilename As String, strFullPath As String
Dim lngCounter As Long
Dim oConn As Object, oRS As Object, oFSObj As Object

'Get a text file name
strFullPath = Application.GetOpenFilename("Text Files (*.csv),*.csv", , "Please select text file...")

If strFullPath = "False" Then Exit Sub 'User pressed Cancel on the open file dialogue

'This gives us a full path name e.g. C:tempfolderfile.txt
'We need to split this into path and file name
Set oFSObj = CreateObject("SCRIPTING.FILESYSTEMOBJECT")

strFilePath = oFSObj.GetFile(strFullPath).ParentFolder.Path
strFilename = oFSObj.GetFile(strFullPath).Name


'Open an ADO connection to the folder specified
Set oConn = CreateObject("ADODB.CONNECTION")
oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & strFilePath & ";" & _
"Extended Properties=""text;HDR=Yes;FMT=Delimited"""

Set oRS = CreateObject("ADODB.RECORDSET")

'Now actually open the text file and import into Excel
oRS.Open "SELECT * FROM " & strFilename, oConn, 3, 1, 1
While Not oRS.EOF
Sheets.Add
ActiveSheet.Range("A1").CopyFromRecordset oRS, 65536
Wend

oRS.Close
oConn.Close

End Sub


However, when I run it in Excel 2007 I get the following error:



Run-time error '-2147217900 (80040e14)':

Syntax error in FROM clause.


On clicking debug it points to this line



    oRS.Open "SELECT * FROM " & strFilename, oConn, 3, 1, 1


I have non-existent VB skills so any help here would be appreciated.



Thanks!



Edit: I found this http://support.microsoft.com/kb/193514 but this doesn't work in this case, in fact, I am not even sure where to place the square brackets. Any place I put the brackets in that line, Excel refuses to give me the run option.



Edit 2: I tried running this on a different machine which just has a lot more juice in it to make memory not an issue. This computer also has Office 2013 on it (no Office 365 with it though). I ran the same macro on that and it gave the following error.



Run-time error '3706':
Provider cannot be found. It may not be properly installed.


When I click Debug it points to this line



oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & strFilePath & ";" & _
-> "Extended Properties=""text;HDR=Yes;FMT=Delimited"""






excel csv ado large-files






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 16 '18 at 17:40









Njol

2,7471130




2,7471130










asked May 14 '13 at 15:34









user2382345user2382345

112




112













  • I don't know about vba either, but that SELECT part is SQL, which I understand a bit more. Could you perhaps include the headers of your csv and where you got the vba script?

    – Jerry
    May 14 '13 at 15:58











  • Are headers different from columns? Forgive me if I sound obtuse, but VB really is completely alien to me.

    – user2382345
    May 14 '13 at 16:17











  • No no, that's perfectly fine to ask. By the headers, I mean the column names in your csv, if you have them. The MS support link you provided mentions that column headers/names in the file you're importing containing a dash cause this error. Conversely, you could import the file in MS access if you know how to use it a bit and export smaller pieces to excel. Before getting there though, I would like to see where you got this vba script, maybe there're some guidelines there.

    – Jerry
    May 14 '13 at 16:30











  • Try adding Debug.Print "SELECT * FROM " & strFilename and see what you get in the Immediate window (Ctrl+G in the VB Editor). does your filename have any spaces?

    – Tim Williams
    May 14 '13 at 16:36






  • 1





    If it does have spaces then you need to enclose the filename in in your SQL. oRS.Open "SELECT * FROM [" & strFilename & "]" blogs.technet.com/b/heyscriptingguy/archive/2005/05/24/…

    – Tim Williams
    May 14 '13 at 16:45





















  • I don't know about vba either, but that SELECT part is SQL, which I understand a bit more. Could you perhaps include the headers of your csv and where you got the vba script?

    – Jerry
    May 14 '13 at 15:58











  • Are headers different from columns? Forgive me if I sound obtuse, but VB really is completely alien to me.

    – user2382345
    May 14 '13 at 16:17











  • No no, that's perfectly fine to ask. By the headers, I mean the column names in your csv, if you have them. The MS support link you provided mentions that column headers/names in the file you're importing containing a dash cause this error. Conversely, you could import the file in MS access if you know how to use it a bit and export smaller pieces to excel. Before getting there though, I would like to see where you got this vba script, maybe there're some guidelines there.

    – Jerry
    May 14 '13 at 16:30











  • Try adding Debug.Print "SELECT * FROM " & strFilename and see what you get in the Immediate window (Ctrl+G in the VB Editor). does your filename have any spaces?

    – Tim Williams
    May 14 '13 at 16:36






  • 1





    If it does have spaces then you need to enclose the filename in in your SQL. oRS.Open "SELECT * FROM [" & strFilename & "]" blogs.technet.com/b/heyscriptingguy/archive/2005/05/24/…

    – Tim Williams
    May 14 '13 at 16:45



















I don't know about vba either, but that SELECT part is SQL, which I understand a bit more. Could you perhaps include the headers of your csv and where you got the vba script?

– Jerry
May 14 '13 at 15:58





I don't know about vba either, but that SELECT part is SQL, which I understand a bit more. Could you perhaps include the headers of your csv and where you got the vba script?

– Jerry
May 14 '13 at 15:58













Are headers different from columns? Forgive me if I sound obtuse, but VB really is completely alien to me.

– user2382345
May 14 '13 at 16:17





Are headers different from columns? Forgive me if I sound obtuse, but VB really is completely alien to me.

– user2382345
May 14 '13 at 16:17













No no, that's perfectly fine to ask. By the headers, I mean the column names in your csv, if you have them. The MS support link you provided mentions that column headers/names in the file you're importing containing a dash cause this error. Conversely, you could import the file in MS access if you know how to use it a bit and export smaller pieces to excel. Before getting there though, I would like to see where you got this vba script, maybe there're some guidelines there.

– Jerry
May 14 '13 at 16:30





No no, that's perfectly fine to ask. By the headers, I mean the column names in your csv, if you have them. The MS support link you provided mentions that column headers/names in the file you're importing containing a dash cause this error. Conversely, you could import the file in MS access if you know how to use it a bit and export smaller pieces to excel. Before getting there though, I would like to see where you got this vba script, maybe there're some guidelines there.

– Jerry
May 14 '13 at 16:30













Try adding Debug.Print "SELECT * FROM " & strFilename and see what you get in the Immediate window (Ctrl+G in the VB Editor). does your filename have any spaces?

– Tim Williams
May 14 '13 at 16:36





Try adding Debug.Print "SELECT * FROM " & strFilename and see what you get in the Immediate window (Ctrl+G in the VB Editor). does your filename have any spaces?

– Tim Williams
May 14 '13 at 16:36




1




1





If it does have spaces then you need to enclose the filename in in your SQL. oRS.Open "SELECT * FROM [" & strFilename & "]" blogs.technet.com/b/heyscriptingguy/archive/2005/05/24/…

– Tim Williams
May 14 '13 at 16:45







If it does have spaces then you need to enclose the filename in in your SQL. oRS.Open "SELECT * FROM [" & strFilename & "]" blogs.technet.com/b/heyscriptingguy/archive/2005/05/24/…

– Tim Williams
May 14 '13 at 16:45














2 Answers
2






active

oldest

votes


















0














Excel 2007 has no 65K limit, as far as I know. Just try importing the csv directly.



EDIT: Comments tell it has a 1M limit, so there is need in splitting the file. When it is simple (no quoted text with linebreaks), then split and head would help. They are availiable under Windows too.






share|improve this answer


























  • According to this msdn.microsoft.com/en-us/library/… Excel 2007's limit is 1 million rows which is still less than what this file has. The file being imported has no '-' in it's name does have one space though Also, I did try opening it in Excel - in fact that was the first thing I did. Didn't work.

    – user2382345
    May 14 '13 at 15:48













  • Excel 2007's actual limit is about 1M now. It's 65536 in Excel 2003.

    – Jerry
    May 14 '13 at 15:49











  • i would prefer not to split it and keep it in one workbook with multiple sheets, which is why the script comes into picture.

    – user2382345
    May 14 '13 at 16:15



















0














Have you looked into PowerPivot? It is a free add-in from Microsoft. It will allow you to connect to the original data source, or use your entire CSV, and load millions of rows (beyond the cell limits). You can summarize the data in Pivot Tables, apply functions to the data, etc. PowerPivot was tailor-made for situations like yours.



Download






share|improve this answer
























  • PowerPivot looks promising, what sucks though is that it needs office 365 to install for Office 2013, which is what I just upgraded to on the machine that has more juice in it.

    – user2382345
    May 14 '13 at 21:17












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f16547303%2fimporting-a-large-csv-into-excel%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Excel 2007 has no 65K limit, as far as I know. Just try importing the csv directly.



EDIT: Comments tell it has a 1M limit, so there is need in splitting the file. When it is simple (no quoted text with linebreaks), then split and head would help. They are availiable under Windows too.






share|improve this answer


























  • According to this msdn.microsoft.com/en-us/library/… Excel 2007's limit is 1 million rows which is still less than what this file has. The file being imported has no '-' in it's name does have one space though Also, I did try opening it in Excel - in fact that was the first thing I did. Didn't work.

    – user2382345
    May 14 '13 at 15:48













  • Excel 2007's actual limit is about 1M now. It's 65536 in Excel 2003.

    – Jerry
    May 14 '13 at 15:49











  • i would prefer not to split it and keep it in one workbook with multiple sheets, which is why the script comes into picture.

    – user2382345
    May 14 '13 at 16:15
















0














Excel 2007 has no 65K limit, as far as I know. Just try importing the csv directly.



EDIT: Comments tell it has a 1M limit, so there is need in splitting the file. When it is simple (no quoted text with linebreaks), then split and head would help. They are availiable under Windows too.






share|improve this answer


























  • According to this msdn.microsoft.com/en-us/library/… Excel 2007's limit is 1 million rows which is still less than what this file has. The file being imported has no '-' in it's name does have one space though Also, I did try opening it in Excel - in fact that was the first thing I did. Didn't work.

    – user2382345
    May 14 '13 at 15:48













  • Excel 2007's actual limit is about 1M now. It's 65536 in Excel 2003.

    – Jerry
    May 14 '13 at 15:49











  • i would prefer not to split it and keep it in one workbook with multiple sheets, which is why the script comes into picture.

    – user2382345
    May 14 '13 at 16:15














0












0








0







Excel 2007 has no 65K limit, as far as I know. Just try importing the csv directly.



EDIT: Comments tell it has a 1M limit, so there is need in splitting the file. When it is simple (no quoted text with linebreaks), then split and head would help. They are availiable under Windows too.






share|improve this answer















Excel 2007 has no 65K limit, as far as I know. Just try importing the csv directly.



EDIT: Comments tell it has a 1M limit, so there is need in splitting the file. When it is simple (no quoted text with linebreaks), then split and head would help. They are availiable under Windows too.







share|improve this answer














share|improve this answer



share|improve this answer








edited May 14 '13 at 15:54

























answered May 14 '13 at 15:41









flaschenpostflaschenpost

1,9971825




1,9971825













  • According to this msdn.microsoft.com/en-us/library/… Excel 2007's limit is 1 million rows which is still less than what this file has. The file being imported has no '-' in it's name does have one space though Also, I did try opening it in Excel - in fact that was the first thing I did. Didn't work.

    – user2382345
    May 14 '13 at 15:48













  • Excel 2007's actual limit is about 1M now. It's 65536 in Excel 2003.

    – Jerry
    May 14 '13 at 15:49











  • i would prefer not to split it and keep it in one workbook with multiple sheets, which is why the script comes into picture.

    – user2382345
    May 14 '13 at 16:15



















  • According to this msdn.microsoft.com/en-us/library/… Excel 2007's limit is 1 million rows which is still less than what this file has. The file being imported has no '-' in it's name does have one space though Also, I did try opening it in Excel - in fact that was the first thing I did. Didn't work.

    – user2382345
    May 14 '13 at 15:48













  • Excel 2007's actual limit is about 1M now. It's 65536 in Excel 2003.

    – Jerry
    May 14 '13 at 15:49











  • i would prefer not to split it and keep it in one workbook with multiple sheets, which is why the script comes into picture.

    – user2382345
    May 14 '13 at 16:15

















According to this msdn.microsoft.com/en-us/library/… Excel 2007's limit is 1 million rows which is still less than what this file has. The file being imported has no '-' in it's name does have one space though Also, I did try opening it in Excel - in fact that was the first thing I did. Didn't work.

– user2382345
May 14 '13 at 15:48







According to this msdn.microsoft.com/en-us/library/… Excel 2007's limit is 1 million rows which is still less than what this file has. The file being imported has no '-' in it's name does have one space though Also, I did try opening it in Excel - in fact that was the first thing I did. Didn't work.

– user2382345
May 14 '13 at 15:48















Excel 2007's actual limit is about 1M now. It's 65536 in Excel 2003.

– Jerry
May 14 '13 at 15:49





Excel 2007's actual limit is about 1M now. It's 65536 in Excel 2003.

– Jerry
May 14 '13 at 15:49













i would prefer not to split it and keep it in one workbook with multiple sheets, which is why the script comes into picture.

– user2382345
May 14 '13 at 16:15





i would prefer not to split it and keep it in one workbook with multiple sheets, which is why the script comes into picture.

– user2382345
May 14 '13 at 16:15













0














Have you looked into PowerPivot? It is a free add-in from Microsoft. It will allow you to connect to the original data source, or use your entire CSV, and load millions of rows (beyond the cell limits). You can summarize the data in Pivot Tables, apply functions to the data, etc. PowerPivot was tailor-made for situations like yours.



Download






share|improve this answer
























  • PowerPivot looks promising, what sucks though is that it needs office 365 to install for Office 2013, which is what I just upgraded to on the machine that has more juice in it.

    – user2382345
    May 14 '13 at 21:17
















0














Have you looked into PowerPivot? It is a free add-in from Microsoft. It will allow you to connect to the original data source, or use your entire CSV, and load millions of rows (beyond the cell limits). You can summarize the data in Pivot Tables, apply functions to the data, etc. PowerPivot was tailor-made for situations like yours.



Download






share|improve this answer
























  • PowerPivot looks promising, what sucks though is that it needs office 365 to install for Office 2013, which is what I just upgraded to on the machine that has more juice in it.

    – user2382345
    May 14 '13 at 21:17














0












0








0







Have you looked into PowerPivot? It is a free add-in from Microsoft. It will allow you to connect to the original data source, or use your entire CSV, and load millions of rows (beyond the cell limits). You can summarize the data in Pivot Tables, apply functions to the data, etc. PowerPivot was tailor-made for situations like yours.



Download






share|improve this answer













Have you looked into PowerPivot? It is a free add-in from Microsoft. It will allow you to connect to the original data source, or use your entire CSV, and load millions of rows (beyond the cell limits). You can summarize the data in Pivot Tables, apply functions to the data, etc. PowerPivot was tailor-made for situations like yours.



Download







share|improve this answer












share|improve this answer



share|improve this answer










answered May 14 '13 at 18:47









ExactaBoxExactaBox

2,636918




2,636918













  • PowerPivot looks promising, what sucks though is that it needs office 365 to install for Office 2013, which is what I just upgraded to on the machine that has more juice in it.

    – user2382345
    May 14 '13 at 21:17



















  • PowerPivot looks promising, what sucks though is that it needs office 365 to install for Office 2013, which is what I just upgraded to on the machine that has more juice in it.

    – user2382345
    May 14 '13 at 21:17

















PowerPivot looks promising, what sucks though is that it needs office 365 to install for Office 2013, which is what I just upgraded to on the machine that has more juice in it.

– user2382345
May 14 '13 at 21:17





PowerPivot looks promising, what sucks though is that it needs office 365 to install for Office 2013, which is what I just upgraded to on the machine that has more juice in it.

– user2382345
May 14 '13 at 21:17


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f16547303%2fimporting-a-large-csv-into-excel%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Bressuire

Vorschmack

Quarantine