Worksheet and workbook specifications and limits
Feature |
Maximum limit |
---|---|
Open workbooks |
Limited by available memory and system resources |
Total number of rows and columns on a worksheet |
1,048,576 rows by 16,384 columns |
Column width |
255 characters |
Row height |
409 points |
Page breaks |
1,026 horizontal and vertical |
Total number of characters that a cell can contain |
32,767 characters |
Characters in a header or footer |
255 |
Maximum number of line feeds per cell |
253 |
Sheets in a workbook |
Limited by available memory (default is 1 sheet) |
Colors in a workbook |
16 million colors (32 bit with full access to 24 bit color spectrum) |
Named views in a workbook |
Limited by available memory |
Unique cell formats/cell styles |
65,490 |
Fill styles |
256 |
Line weight and styles |
256 |
Unique font types |
1,024 global fonts available for use; 512 per workbook |
Number formats in a workbook |
Between 200 and 250, depending on the language version of Excel that you have installed |
Names in a workbook |
Limited by available memory |
Windows in a workbook |
Limited by available memory |
Hyperlinks in a worksheet |
65,530 |
Panes in a window |
4 |
Linked sheets |
Limited by available memory |
Scenarios |
Limited by available memory; a summary report shows only the first 251 scenarios |
Changing cells in a scenario |
32 |
Adjustable cells in Solver |
200 |
Custom functions |
Limited by available memory |
Zoom range |
10 percent to 400 percent |
Reports |
Limited by available memory |
Sort references |
64 in a single sort; unlimited when using sequential sorts |
Undo levels |
100 |
Fields in a data form |
32 |
Workbook parameters |
255 parameters per workbook |
Items displayed in filter drop-down lists |
10,000 |
Noncontiguous cells that can be selected |
2,147,483,648 cells |
Maximum limits of memory storage and file size for Data Model workbooks |
32-bit environment is subject to 2 gigabytes (GB) of virtual address space, shared by Excel, the workbook, and add-ins that run in the same process. A data model’s share of the address space might run up to 500 – 700 megabytes (MB), but could be less if other data models and add-ins are loaded. 64-bit environment imposes no hard limits on file size. Workbook size is limited only by available memory and system resources. Beginning with Excel 2016, Large Address Aware functionality lets 32-bit Excel consume twice the memory when users work on a 64-bit Windows operating system. For more information, see Large Address Aware capability change for Excel. Note: Adding tables to the Data Model increases the file size. If you don’t plan to create complex Data Model relationships using many data sources and data types in your workbook, uncheck the Add this data to the Data Model box when you import or create tables, pivot tables, or data connections. For more information, see Data Model specification and limits. |
Processor Cores |
64 |
File name length |
218 characters — This includes the file path. For example, C:UsernameDocumentsFileName.xlsx. |
Calculation specifications and limits
Feature |
Maximum limit |
---|---|
Number precision |
15 digits |
Smallest allowed negative number |
-2.2251E-308 |
Smallest allowed positive number |
2.2251E-308 |
Largest allowed positive number |
9.99999999999999E+307 |
Largest allowed negative number |
-9.99999999999999E+307 |
Largest allowed positive number via formula |
1.7976931348623158e+308 |
Largest allowed negative number via formula |
-1.7976931348623158e+308 |
Length of formula contents |
8,192 characters |
Internal length of formula |
16,384 bytes |
Iterations |
32,767 |
Worksheet arrays |
Limited by available memory |
Selected ranges |
2,048 |
Arguments in a function |
255 |
Nested levels of functions |
64 |
User defined function categories |
255 |
Number of available worksheet functions |
341 |
Size of the operand stack |
1,024 |
Cross-worksheet dependency |
64,000 worksheets that can refer to other sheets |
Cross-worksheet array formula dependency |
Limited by available memory |
Area dependency |
Limited by available memory |
Area dependency per worksheet |
Limited by available memory |
Dependency on a single cell |
4 billion formulas that can depend on a single cell |
Linked cell content length from closed workbooks |
32,767 |
Earliest date allowed for calculation |
January 1, 1900 (January 1, 1904, if 1904 date system is used) |
Latest date allowed for calculation |
December 31, 9999 |
Largest amount of time that can be entered |
9999:59:59 |
Charting specifications and limits
Feature |
Maximum limit |
---|---|
Charts linked to a worksheet |
Limited by available memory |
Worksheets referred to by a chart |
255 |
Data series in one chart |
255 |
Data points in a data series for 2-D charts |
Limited by available memory |
Data points in a data series for 3-D charts |
Limited by available memory |
Data points for all data series in one chart |
Limited by available memory |
PivotTable and PivotChart report specifications and limits
Feature |
Maximum limit |
---|---|
PivotTable reports on a sheet |
Limited by available memory |
Unique items per field |
1,048,576 |
Row or column fields in a PivotTable report |
Limited by available memory |
Report filters in a PivotTable report |
256 (may be limited by available memory) |
Value fields in a PivotTable report |
256 |
Calculated item formulas in a PivotTable report |
Limited by available memory |
Report filters in a PivotChart report |
256 (may be limited by available memory) |
Value fields in a PivotChart report |
256 |
Calculated item formulas in a PivotChart report |
Limited by available memory |
Length of the MDX name for a PivotTable item |
32,767 |
Length for a relational PivotTable string |
32,767 |
Items displayed in filter drop-down lists |
10,000 |
Workbooks with the «Allow changes by more than one user…» setting enabled
If the Allow changes by more than one user… setting is on for a workbook, then the following information applies. This setting is accessible by clicking the Review tab > Share Workbook. Note that in newer versions of Excel, the Share Workbook button has been hidden. To unhide it, click File > Options > Quick Access Toolbar. Open the list under Choose commands from and select All Commands. Scroll down that list until you see Share Workbook (Legacy). Select that item and click Add. Click OK. The Share Workbook button is now at the top of the Excel window.
Feature |
Maximum limit |
---|---|
Users who can open the file at the same time |
256 |
Personal views in the workbook |
Limited by available memory |
Days that change history is maintained |
32,767 (default is 30 days) |
Workbooks that can be merged at one time |
Limited by available memory |
Cells that can be highlighted |
32,767 |
Colors used to identify changes made by different users when change highlighting is turned on |
32 (each user is identified by a separate color; changes made by the current user are highlighted with navy blue) |
Excel tables in the workbook |
0 (zero) Note: A workbook that contains one or more Excel tables cannot have the Allow changes by more than one user… setting enabled. |
Worksheet and workbook specifications and limits
Feature |
Maximum limit |
---|---|
Open workbooks |
Limited by available memory and system resources |
Total number of rows and columns on a worksheet |
1,048,576 rows by 16,384 columns |
Column width |
255 characters |
Row height |
409 points |
Page breaks |
1,026 horizontal and vertical |
Total number of characters that a cell can contain |
32,767 characters |
Characters in a header or footer |
255 |
Maximum number of line feeds per cell |
253 |
Sheets in a workbook |
Limited by available memory (default is 3 sheets) |
Colors in a workbook |
16 million colors (32 bit with full access to 24 bit color spectrum) |
Named views in a workbook |
Limited by available memory |
Unique cell formats/cell styles |
65,490 |
Fill styles |
256 |
Line weight and styles |
256 |
Unique font types |
1,024 global fonts available for use; 512 per workbook |
Number formats in a workbook |
Between 200 and 250, depending on the language version of Excel that you have installed |
Names in a workbook |
Limited by available memory |
Windows in a workbook |
Limited by available memory |
Hyperlinks in a worksheet |
65,530 hyperlinks |
Panes in a window |
4 |
Linked sheets |
Limited by available memory |
Scenarios |
Limited by available memory; a summary report shows only the first 251 scenarios |
Changing cells in a scenario |
32 |
Adjustable cells in Solver |
200 |
Custom functions |
Limited by available memory |
Zoom range |
10 percent to 400 percent |
Reports |
Limited by available memory |
Sort references |
64 in a single sort; unlimited when using sequential sorts |
Undo levels |
100 |
Fields in a data form |
32 |
Workbook parameters |
255 parameters per workbook |
Items displayed in filter drop-down lists |
10,000 |
Noncontiguous cells that can be selected |
2,147,483,648 cells |
Processor Cores |
64 |
Calculation specifications and limits
Feature |
Maximum limit |
---|---|
Number precision |
15 digits |
Smallest allowed negative number |
-2.2251E-308 |
Smallest allowed positive number |
2.2251E-308 |
Largest allowed positive number |
9.99999999999999E+307 |
Largest allowed negative number |
-9.99999999999999E+307 |
Largest allowed positive number via formula |
1.7976931348623158e+308 |
Largest allowed negative number via formula |
-1.7976931348623158e+308 |
Length of formula contents |
8,192 characters |
Internal length of formula |
16,384 bytes |
Iterations |
32,767 |
Worksheet arrays |
Limited by available memory |
Selected ranges |
2,048 |
Arguments in a function |
255 |
Nested levels of functions |
64 |
User defined function categories |
255 |
Number of available worksheet functions |
341 |
Size of the operand stack |
1,024 |
Cross-worksheet dependency |
64,000 worksheets that can refer to other sheets |
Cross-worksheet array formula dependency |
Limited by available memory |
Area dependency |
Limited by available memory |
Area dependency per worksheet |
Limited by available memory |
Dependency on a single cell |
4 billion formulas that can depend on a single cell |
Linked cell content length from closed workbooks |
32,767 |
Earliest date allowed for calculation |
January 1, 1900 (January 1, 1904, if 1904 date system is used) |
Latest date allowed for calculation |
December 31, 9999 |
Largest amount of time that can be entered |
9999:59:59 |
Charting specifications and limits
Feature |
Maximum limit |
---|---|
Charts linked to a worksheet |
Limited by available memory |
Worksheets referred to by a chart |
255 |
Data series in one chart |
255 |
Data points in a data series for 2-D charts |
Limited by available memory |
Data points in a data series for 3-D charts |
Limited by available memory |
Data points for all data series in one chart |
Limited by available memory |
PivotTable and PivotChart report specifications and limits
Feature |
Maximum limit |
---|---|
PivotTable reports on a sheet |
Limited by available memory |
Unique items per field |
1,048,576 |
Row or column fields in a PivotTable report |
Limited by available memory |
Report filters in a PivotTable report |
256 (may be limited by available memory) |
Value fields in a PivotTable report |
256 |
Calculated item formulas in a PivotTable report |
Limited by available memory |
Report filters in a PivotChart report |
256 (may be limited by available memory) |
Value fields in a PivotChart report |
256 |
Calculated item formulas in a PivotChart report |
Limited by available memory |
Length of the MDX name for a PivotTable item |
32,767 |
Length for a relational PivotTable string |
32,767 |
Items displayed in filter drop-down lists |
10,000 |
Workbooks with the «Allow changes by more than one user…» setting enabled
If the Allow changes by more than one user… setting is on for a workbook, then the following information applies. This setting is accessible by clicking the Review tab > Share Workbook.
Feature |
Maximum limit |
---|---|
Users who can open and share the file at the same time |
256 |
Personal views in the workbook |
Limited by available memory |
Days that change history is maintained |
32,767 (default is 30 days) |
Workbooks that can be merged at one time |
Limited by available memory |
Cells that can be highlighted in the workbook |
32,767 |
Colors used to identify changes made by different users when change highlighting is turned on |
32 (each user is identified by a separate color; changes made by the current user are highlighted with navy blue) |
Excel tables in the workbook |
0 (zero) Note: A workbook that contains one or more Excel tables cannot have the Allow changes by more than one user… setting enabled. |
Worksheet and workbook specifications and limits
Feature |
Maximum limit |
---|---|
Open workbooks |
Limited by available memory and system resources |
Total number of rows and columns on a worksheet |
1,048,576 rows by 16,384 columns |
Column width |
255 characters |
Row height |
409 points |
Page breaks |
1,026 horizontal and vertical |
Total number of characters that a cell can contain |
32,767 characters |
Characters in a header or footer |
255 |
Maximum number of line feeds per cell |
253 |
Sheets in a workbook |
Limited by available memory (default is 3 sheets) |
Colors in a workbook |
16 million colors (32 bit with full access to 24 bit color spectrum) |
Named views in a workbook |
Limited by available memory |
Unique cell formats/cell styles |
65,490 |
Fill styles |
256 |
Line weight and styles |
256 |
Unique font types |
1,024 global fonts available for use; 512 per workbook |
Number formats in a workbook |
Between 200 and 250, depending on the language version of Excel that you have installed |
Names in a workbook |
Limited by available memory |
Windows in a workbook |
Limited by available memory |
Hyperlinks in a worksheet |
65,530 hyperlinks |
Panes in a window |
4 |
Linked sheets |
Limited by available memory |
Scenarios |
Limited by available memory; a summary report shows only the first 251 scenarios |
Changing cells in a scenario |
32 |
Adjustable cells in Solver |
200 |
Custom functions |
Limited by available memory |
Zoom range |
10 percent to 400 percent |
Reports |
Limited by available memory |
Sort references |
64 in a single sort; unlimited when using sequential sorts |
Undo levels |
100 |
Fields in a data form |
32 |
Workbook parameters |
255 parameters per workbook |
Filter drop-down lists |
10,000 |
Calculation specifications and limits
Feature |
Maximum limit |
---|---|
Number precision |
15 digits |
Smallest allowed negative number |
-2.2251E-308 |
Smallest allowed positive number |
2.2251E-308 |
Largest allowed positive number |
9.99999999999999E+307 |
Largest allowed negative number |
-9.99999999999999E+307 |
Largest allowed positive number via formula |
1.7976931348623158e+308 |
Largest allowed negative number via formula |
-1.7976931348623158e+308 |
Length of formula contents |
8,192 characters |
Internal length of formula |
16,384 bytes |
Iterations |
32,767 |
Worksheet arrays |
Limited by available memory |
Selected ranges |
2,048 |
Arguments in a function |
255 |
Nested levels of functions |
64 |
User defined function categories |
255 |
Number of available worksheet functions |
341 |
Size of the operand stack |
1,024 |
Cross-worksheet dependency |
64,000 worksheets that can refer to other sheets |
Cross-worksheet array formula dependency |
Limited by available memory |
Area dependency |
Limited by available memory |
Area dependency per worksheet |
Limited by available memory |
Dependency on a single cell |
4 billion formulas that can depend on a single cell |
Linked cell content length from closed workbooks |
32,767 |
Earliest date allowed for calculation |
January 1, 1900 (January 1, 1904, if 1904 date system is used) |
Latest date allowed for calculation |
December 31, 9999 |
Largest amount of time that can be entered |
9999:59:59 |
Charting specifications and limits
Feature |
Maximum limit |
---|---|
Charts linked to a worksheet |
Limited by available memory |
Worksheets referred to by a chart |
255 |
Data series in one chart |
255 |
Data points in a data series for 2-D charts |
32,000 |
Data points in a data series for 3-D charts |
4,000 |
Data points for all data series in one chart |
256,000 |
PivotTable and PivotChart report specifications and limits
Feature |
Maximum limit |
---|---|
PivotTable reports on a sheet |
Limited by available memory |
Unique items per field |
1,048,576 |
Row or column fields in a PivotTable report |
Limited by available memory |
Report filters in a PivotTable report |
256 (may be limited by available memory) |
Value fields in a PivotTable report |
256 |
Calculated item formulas in a PivotTable report |
Limited by available memory |
Report filters in a PivotChart report |
256 (may be limited by available memory) |
Value fields in a PivotChart report |
256 |
Calculated item formulas in a PivotChart report |
Limited by available memory |
Length of the MDX name for a PivotTable item |
32,767 |
Length for a relational PivotTable string |
32,767 |
Workbooks with the «Allow changes by more than one user…» setting enabled
If the Allow changes by more than one user… setting is on for a workbook, then the following information applies. This setting is enabled when using Shared Workbooks.
Feature |
Maximum limit |
---|---|
Users who can open and share the workbook at the same time |
256 |
Personal views in the workbook |
Limited by available memory |
Days that change history is maintained |
32,767 (default is 30 days) |
Workbooks that can be merged at one time |
Limited by available memory |
Cells that can be highlighted |
32,767 |
Colors used to identify changes made by different users when change highlighting is turned on |
32 (each user is identified by a separate color; changes made by the current user are highlighted with navy blue) |
Excel tables in the workbook |
0 (zero) Note: A workbook that contains one or more Excel tables cannot have the Allow changes by more than one user… setting enabled. |
Top of Page
Updated: 06/30/2019 by
The number of cells, columns, rows, and sheets supported by a spreadsheet depend on the software used, and the data contained in the spreadsheet. Below is a list of the maximum number of rows, columns, cells, and individual sheets supported by various spreadsheet software.
Note
The below values are the theoretical limits. Other factors, including how much memory the computer has, determine how many rows, columns, and cells are supported.
Version | Rows | Columns | Cells | Sheets |
---|---|---|---|---|
Excel 2019 | 1,048,576 | 16,384 XFD | 17,179,869,184 | * |
Excel 2016 | 1,048,576 | 16,384 XFD | 17,179,869,184 | * |
Excel 2013 | 1,048,576 | 16,384 XFD | 17,179,869,184 | * |
Excel 2007 | 1,048,576 | 16,384 XFD | 17,179,869,184 | * |
Excel 2003 and earlier | 65,536 | 256 | 16,777,216 | * |
Google Sheets | 256 | 400,000 | 200 | |
OpenOffice Calc 3 | 1,048,576 | 16,384 | 17,179,869,184 | 256 |
OpenOffice Calc 2 | 65,536 | 256 | 16,777,216 | 256 |
Gnumeric | 65,536 | 256 | 16,777,216 | * |
KSpread | 32,767 | 32,767 | 1,073,676,289 | * |
Lotus 1-2-3 | 65,536 | 256 | 16,777,216 | 256 |
LibreOffice Calc | 1,048,576 | 1,024 | 1,073,741,824 | 10,000 |
* Dependent on memory
How to get to the last row of a worksheet
Press and hold down Ctrl and press the down arrow key.
How to get to the last column of a worksheet
Press and hold down Ctrl and press the right arrow key.
How many sheets are there in an Excel workbook?
By default, there are three sheets in a new workbook in all versions of Excel, though users can create as many as their computer memory allows. These three worksheets are named Sheet1, Sheet2, and Sheet3.
How many characters can fit into a single cell?
The total number of characters a cell can contain is 32,767.
How are rows and columns labeled?
In all spreadsheet programs, including Microsoft Excel, rows are labeled using numbers (e.g., 1 to 1,048,576). All columns are labeled with letters A through Z, then AA through ZZ, etc. For example, after the letter Z, the next column is AA, AB, AC, …, AZ and then incrementing to BA, BB, BC, etc.
To identify a cell, give both the column and the row. For example, the first cell is always located in column A, on row 1, so the cell is labeled A1.
-
06-21-2005, 04:05 AM
#1
Max number of worksheets in a workbook?
I’ve heard that the maximum number of worksheets allowed in an Excel
workbook is 255. Is this urban myth? I just had a look at «Excel
specifications and limits» for XL2003 at
http://office.microsoft.com/en-us/as…spx?mode=print
and the Maximum limit is defined as «Limited by available memory (default is
3 sheets)». Is this true only for XL2003? What about XL2000?The only thing I’ve read about chart limitations is in regard to «Worksheets
referred to by a chart» — which is no an issue for me.So it’s possible to have 500 worksheets and 2000 charts? The only
limitation is memory/processor?Thanks in advance.
-
06-21-2005, 04:05 AM
#2
Re: Max number of worksheets in a workbook?
just create a workbook with 100 sheets
select all sheets
type1 in a1
type1 in e10000select sheet1
save
look at size.
nuf said.
—
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdamdeko wrote :
> I’ve heard that the maximum number of worksheets allowed in an Excel
> workbook is 255. Is this urban myth? I just had a look at «Excel
> specifications and limits» for XL2003 at
> http://office.microsoft.com/en-us/as…033.aspx?mode=
> print and the Maximum limit is defined as «Limited by available
> memory (default is 3 sheets)». Is this true only for XL2003? What
> about XL2000?
>
> The only thing I’ve read about chart limitations is in regard to
> «Worksheets referred to by a chart» — which is no an issue for me.
>
> So it’s possible to have 500 worksheets and 2000 charts? The only
> limitation is memory/processor?
>
> Thanks in advance.
-
06-21-2005, 05:05 AM
#3
Re: Max number of worksheets in a workbook?
The number of sheets in a new workbook is 255 (You set this here: Tools >
Options: General, «Sheets in new workbook») , but you can then add more
sheets until your system’s resources run out. This has been the case since
Excel 95.—
Andy Wiggins FCCA
www.BygSoftware.com
Excel, Access and VBA Consultancy
—«deko» <deko@deko.com> wrote in message
news:mCPte.1974$Bx6.956@newssvr13.news.prodigy.com…
> I’ve heard that the maximum number of worksheets allowed in an Excel
> workbook is 255. Is this urban myth? I just had a look at «Excel
> specifications and limits» for XL2003 at
>
http://office.microsoft.com/en-us/as…spx?mode=print
> and the Maximum limit is defined as «Limited by available memory (default
is
> 3 sheets)». Is this true only for XL2003? What about XL2000?
>
> The only thing I’ve read about chart limitations is in regard to
«Worksheets
> referred to by a chart» — which is no an issue for me.
>
> So it’s possible to have 500 worksheets and 2000 charts? The only
> limitation is memory/processor?
>
> Thanks in advance.
>
>
-
06-21-2005, 05:05 AM
#4
Re: Max number of worksheets in a workbook?
> The number of sheets in a new workbook is 255 (You set this here: Tools >
> Options: General, «Sheets in new workbook») , but you can then add more
> sheets until your system’s resources run out. This has been the case since
> Excel 95.Silly me. I export to Excel from Access and had written code to handle
this…If z > 254 Then Err.Raise WORKBOOK_FULL
-
06-21-2005, 05:05 AM
#5
Re: Max number of worksheets in a workbook?
> select all sheets
>
> type1 in a1
> type1 in e10000
>
> select sheet1
>
> save
>
> look at size.For some reason that didn’t work for me.
But I tried this:
right click on worksheet tab
select all sheets
right click on any worksheet tab and select insert
click OK on Insert dialog
open immediate window
debug.Print worksheets.Count
repeatResults:
Original number of sheets: 60
Original size: 8.12Mgdebug.Print worksheets.Count
120
debug.Print worksheets.Count
240
debug.Print worksheets.Count
480
debug.Print worksheets.Count
960At 960 the size was 9.51Mg — after inserting 900 empty worksheets.
Performance was acceptable, but somewhat slow opening and saving.If I inserted copies of the existing worksheets, my guess is the size would
be just over 100Mb. What I’d like to do is find a way to write a loop that
would copy/rename/insert a particular worksheet in the workbook, and test
again at the above intervals. That way I’d know what the practical ceiling
is for my app.Any suggestions on how to construct such a loop?
-
06-21-2005, 06:05 AM
#6
Re: Max number of worksheets in a workbook?
Hi
This spring I was handed a workbook with 1600 worksheets in it, each sheet
containing a chart. I volunteered to reorganize that work, believing that
the thing would self destruct at a point very soon. While I rewrote it, they
continued to use it.It died while adding sheet number 2005 into it. So the limit is either 2004,
or maybe «last year». Depends on the content of course. But the point is,
that file will not be fine again just with more RAM, it killed itself
because of its size. So don’t push those limits.HTH. Best wishes Harald
«deko» <deko@deko.com> skrev i melding
news:mCPte.1974$Bx6.956@newssvr13.news.prodigy.com…
> I’ve heard that the maximum number of worksheets allowed in an Excel
> workbook is 255. Is this urban myth? I just had a look at «Excel
> specifications and limits» for XL2003 at
>
http://office.microsoft.com/en-us/as…spx?mode=print
> and the Maximum limit is defined as «Limited by available memory (default
is
> 3 sheets)». Is this true only for XL2003? What about XL2000?
>
> The only thing I’ve read about chart limitations is in regard to
«Worksheets
> referred to by a chart» — which is no an issue for me.
>
> So it’s possible to have 500 worksheets and 2000 charts? The only
> limitation is memory/processor?
>
> Thanks in advance.
>
>
-
06-21-2005, 06:05 AM
#7
Re: Max number of worksheets in a workbook?
The 255 sheet limit is the maximum number of sheets that sheets
allowed in a newly created workbook. It is the upper limit
imposed by the Application.SheetsInNewWorkbook property.You can add aditional sheets as required by your application.
There is no hard limit to the number of sheets in a workbook. It
is limited by the memory available to Excel.—
Cordially,
Chip Pearson
Microsoft MVP — Excel
Pearson Software Consulting, LLC
www.cpearson.com«deko» <deko@deko.com> wrote in message
news:mCPte.1974$Bx6.956@newssvr13.news.prodigy.com…
> I’ve heard that the maximum number of worksheets allowed in an
> Excel
> workbook is 255. Is this urban myth? I just had a look at
> «Excel
> specifications and limits» for XL2003 at
> http://office.microsoft.com/en-us/as…spx?mode=print
> and the Maximum limit is defined as «Limited by available
> memory (default is
> 3 sheets)». Is this true only for XL2003? What about XL2000?
>
> The only thing I’ve read about chart limitations is in regard
> to «Worksheets
> referred to by a chart» — which is no an issue for me.
>
> So it’s possible to have 500 worksheets and 2000 charts? The
> only
> limitation is memory/processor?
>
> Thanks in advance.
>
>
-
06-21-2005, 12:05 PM
#8
Re: Max number of worksheets in a workbook?
You might check out Charles Williams’ sight:
http://www.decisionmodels.com/memlimits.htm
—
Regards,
Tom Ogilvy«deko» <deko@deko.com> wrote in message
news:RGQte.1982$Bx6.1636@newssvr13.news.prodigy.com…
> > select all sheets
> >
> > type1 in a1
> > type1 in e10000
> >
> > select sheet1
> >
> > save
> >
> > look at size.
>
> For some reason that didn’t work for me.
>
> But I tried this:
>
> right click on worksheet tab
> select all sheets
> right click on any worksheet tab and select insert
> click OK on Insert dialog
> open immediate window
> debug.Print worksheets.Count
> repeat
>
> Results:
>
> Original number of sheets: 60
> Original size: 8.12Mg
>
> debug.Print worksheets.Count
> 120
> debug.Print worksheets.Count
> 240
> debug.Print worksheets.Count
> 480
> debug.Print worksheets.Count
> 960
>
> At 960 the size was 9.51Mg — after inserting 900 empty worksheets.
> Performance was acceptable, but somewhat slow opening and saving.
>
> If I inserted copies of the existing worksheets, my guess is the size
would
> be just over 100Mb. What I’d like to do is find a way to write a loop
that
> would copy/rename/insert a particular worksheet in the workbook, and test
> again at the above intervals. That way I’d know what the practical
ceiling
> is for my app.
>
> Any suggestions on how to construct such a loop?
>
>
-
06-21-2005, 02:05 PM
#9
Re: Max number of worksheets in a workbook?
And when you finished your rewrite, you had how many sheets?
Did you create the charts on the fly or some other approach?
Signed,
Just Curious
Harald Staff wrote:
>
> Hi
>
> This spring I was handed a workbook with 1600 worksheets in it, each sheet
> containing a chart. I volunteered to reorganize that work, believing that
> the thing would self destruct at a point very soon. While I rewrote it, they
> continued to use it.
>
> It died while adding sheet number 2005 into it. So the limit is either 2004,
> or maybe «last year». Depends on the content of course. But the point is,
> that file will not be fine again just with more RAM, it killed itself
> because of its size. So don’t push those limits.
>
> HTH. Best wishes Harald
>
> «deko» <deko@deko.com> skrev i melding
> news:mCPte.1974$Bx6.956@newssvr13.news.prodigy.com…
> > I’ve heard that the maximum number of worksheets allowed in an Excel
> > workbook is 255. Is this urban myth? I just had a look at «Excel
> > specifications and limits» for XL2003 at
> >
> http://office.microsoft.com/en-us/as…spx?mode=print
> > and the Maximum limit is defined as «Limited by available memory (default
> is
> > 3 sheets)». Is this true only for XL2003? What about XL2000?
> >
> > The only thing I’ve read about chart limitations is in regard to
> «Worksheets
> > referred to by a chart» — which is no an issue for me.
> >
> > So it’s possible to have 500 worksheets and 2000 charts? The only
> > limitation is memory/processor?
> >
> > Thanks in advance.
> >
> >—
Dave Peterson
-
06-21-2005, 04:05 PM
#10
Re: Max number of worksheets in a workbook?
sight => site
hopefully he can see fine.
—
Regards,
Tom Ogilvy«Tom Ogilvy» <twogilvy@msn.com> wrote in message
news:%23bsyWPndFHA.3880@tk2msftngp13.phx.gbl…
> You might check out Charles Williams’ sight:
>
> http://www.decisionmodels.com/memlimits.htm
>
> —
> Regards,
> Tom Ogilvy
>
>
> «deko» <deko@deko.com> wrote in message
> news:RGQte.1982$Bx6.1636@newssvr13.news.prodigy.com…
> > > select all sheets
> > >
> > > type1 in a1
> > > type1 in e10000
> > >
> > > select sheet1
> > >
> > > save
> > >
> > > look at size.
> >
> > For some reason that didn’t work for me.
> >
> > But I tried this:
> >
> > right click on worksheet tab
> > select all sheets
> > right click on any worksheet tab and select insert
> > click OK on Insert dialog
> > open immediate window
> > debug.Print worksheets.Count
> > repeat
> >
> > Results:
> >
> > Original number of sheets: 60
> > Original size: 8.12Mg
> >
> > debug.Print worksheets.Count
> > 120
> > debug.Print worksheets.Count
> > 240
> > debug.Print worksheets.Count
> > 480
> > debug.Print worksheets.Count
> > 960
> >
> > At 960 the size was 9.51Mg — after inserting 900 empty worksheets.
> > Performance was acceptable, but somewhat slow opening and saving.
> >
> > If I inserted copies of the existing worksheets, my guess is the size
> would
> > be just over 100Mb. What I’d like to do is find a way to write a loop
> that
> > would copy/rename/insert a particular worksheet in the workbook, and
test
> > again at the above intervals. That way I’d know what the practical
> ceiling
> > is for my app.
> >
> > Any suggestions on how to construct such a loop?
> >
> >
>
>
-
06-21-2005, 07:05 PM
#11
Re: Max number of worksheets in a workbook?
> > http://www.decisionmodels.com/memlimits.htm
Interesting stats. Bottom line: the bigger the workbook, the more RAM you
need.what’s happening in my case is an export from Access creating any number of
worksheets — depending on how many data files the user points the app at.
The app can run for 30 or so minutes on slower machines when creating 120
worksheets. Each worksheet has at least one chart (and some have up to 10
charts) so I’m worried about users creating workbooks so big they can’t open
them — and blaming my app. Perhaps I should impose a 255 worksheet limit…
-
06-22-2005, 04:05 AM
#12
Re: Max number of worksheets in a workbook?
Hi Julius Curius
One sheet an one chart for processing, one userform for controlling the
thing and an Access mdb file containing all data. The best of three worlds
<g>Best wishes Harald
«Dave Peterson» <ec35720@netscapeXSPAM.com> skrev i melding
news:42B855CC.936074A5@netscapeXSPAM.com…
> And when you finished your rewrite, you had how many sheets?
>
> Did you create the charts on the fly or some other approach?
>
> Signed,
>
> Just Curious
>
> Harald Staff wrote:
> >
> > Hi
> >
> > This spring I was handed a workbook with 1600 worksheets in it, each
sheet
> > containing a chart. I volunteered to reorganize that work, believing
that
> > the thing would self destruct at a point very soon. While I rewrote it,
they
> > continued to use it.
> >
> > It died while adding sheet number 2005 into it. So the limit is either
2004,
> > or maybe «last year». Depends on the content of course. But the point
is,
> > that file will not be fine again just with more RAM, it killed itself
> > because of its size. So don’t push those limits.
> >
> > HTH. Best wishes Harald
> >
> > «deko» <deko@deko.com> skrev i melding
> > news:mCPte.1974$Bx6.956@newssvr13.news.prodigy.com…
> > > I’ve heard that the maximum number of worksheets allowed in an Excel
> > > workbook is 255. Is this urban myth? I just had a look at «Excel
> > > specifications and limits» for XL2003 at
> > >
> >
http://office.microsoft.com/en-us/as…spx?mode=print
> > > and the Maximum limit is defined as «Limited by available memory
(default
> > is
> > > 3 sheets)». Is this true only for XL2003? What about XL2000?
> > >
> > > The only thing I’ve read about chart limitations is in regard to
> > «Worksheets
> > > referred to by a chart» — which is no an issue for me.
> > >
> > > So it’s possible to have 500 worksheets and 2000 charts? The only
> > > limitation is memory/processor?
> > >
> > > Thanks in advance.
> > >
> > >
>
> —
>
> Dave Peterson
-
06-22-2005, 08:05 AM
#13
Re: Max number of worksheets in a workbook?
Thanks,
I am no longer curious (yellow).
Harald Staff wrote:
>
> Hi Julius Curius
>
> One sheet an one chart for processing, one userform for controlling the
> thing and an Access mdb file containing all data. The best of three worlds
> <g>
>
> Best wishes Harald
>
> «Dave Peterson» <ec35720@netscapeXSPAM.com> skrev i melding
> news:42B855CC.936074A5@netscapeXSPAM.com…
> > And when you finished your rewrite, you had how many sheets?
> >
> > Did you create the charts on the fly or some other approach?
> >
> > Signed,
> >
> > Just Curious
> >
> > Harald Staff wrote:
> > >
> > > Hi
> > >
> > > This spring I was handed a workbook with 1600 worksheets in it, each
> sheet
> > > containing a chart. I volunteered to reorganize that work, believing
> that
> > > the thing would self destruct at a point very soon. While I rewrote it,
> they
> > > continued to use it.
> > >
> > > It died while adding sheet number 2005 into it. So the limit is either
> 2004,
> > > or maybe «last year». Depends on the content of course. But the point
> is,
> > > that file will not be fine again just with more RAM, it killed itself
> > > because of its size. So don’t push those limits.
> > >
> > > HTH. Best wishes Harald
> > >
> > > «deko» <deko@deko.com> skrev i melding
> > > news:mCPte.1974$Bx6.956@newssvr13.news.prodigy.com…
> > > > I’ve heard that the maximum number of worksheets allowed in an Excel
> > > > workbook is 255. Is this urban myth? I just had a look at «Excel
> > > > specifications and limits» for XL2003 at
> > > >
> > >
> http://office.microsoft.com/en-us/as…spx?mode=print
> > > > and the Maximum limit is defined as «Limited by available memory
> (default
> > > is
> > > > 3 sheets)». Is this true only for XL2003? What about XL2000?
> > > >
> > > > The only thing I’ve read about chart limitations is in regard to
> > > «Worksheets
> > > > referred to by a chart» — which is no an issue for me.
> > > >
> > > > So it’s possible to have 500 worksheets and 2000 charts? The only
> > > > limitation is memory/processor?
> > > >
> > > > Thanks in advance.
> > > >
> > > >
> >
> > —
> >
> > Dave Peterson—
Dave Peterson
-
06-22-2005, 01:05 PM
#14
Re: Max number of worksheets in a workbook?
Without knowing more, that and perhaps a pivottable might be one solution
for Deko.—
Regards,
Tom Ogilvy«Harald Staff» <innocent@enron.invalid> wrote in message
news:%2351kIvvdFHA.1504@TK2MSFTNGP15.phx.gbl…
> Hi Julius Curius
>
> One sheet an one chart for processing, one userform for controlling the
> thing and an Access mdb file containing all data. The best of three worlds
> <g>
>
> Best wishes Harald
>
> «Dave Peterson» <ec35720@netscapeXSPAM.com> skrev i melding
> news:42B855CC.936074A5@netscapeXSPAM.com…
> > And when you finished your rewrite, you had how many sheets?
> >
> > Did you create the charts on the fly or some other approach?
> >
> > Signed,
> >
> > Just Curious
> >
> > Harald Staff wrote:
> > >
> > > Hi
> > >
> > > This spring I was handed a workbook with 1600 worksheets in it, each
> sheet
> > > containing a chart. I volunteered to reorganize that work, believing
> that
> > > the thing would self destruct at a point very soon. While I rewrote
it,
> they
> > > continued to use it.
> > >
> > > It died while adding sheet number 2005 into it. So the limit is either
> 2004,
> > > or maybe «last year». Depends on the content of course. But the point
> is,
> > > that file will not be fine again just with more RAM, it killed itself
> > > because of its size. So don’t push those limits.
> > >
> > > HTH. Best wishes Harald
> > >
> > > «deko» <deko@deko.com> skrev i melding
> > > news:mCPte.1974$Bx6.956@newssvr13.news.prodigy.com…
> > > > I’ve heard that the maximum number of worksheets allowed in an Excel
> > > > workbook is 255. Is this urban myth? I just had a look at «Excel
> > > > specifications and limits» for XL2003 at
> > > >
> > >
>
http://office.microsoft.com/en-us/as…spx?mode=print
> > > > and the Maximum limit is defined as «Limited by available memory
> (default
> > > is
> > > > 3 sheets)». Is this true only for XL2003? What about XL2000?
> > > >
> > > > The only thing I’ve read about chart limitations is in regard to
> > > «Worksheets
> > > > referred to by a chart» — which is no an issue for me.
> > > >
> > > > So it’s possible to have 500 worksheets and 2000 charts? The only
> > > > limitation is memory/processor?
> > > >
> > > > Thanks in advance.
> > > >
> > > >
> >
> > —
> >
> > Dave Peterson
>
>
-
09-26-2018, 09:07 AM
#15
Registered User
Re: Max number of worksheets in a workbook?
Nothing like replying to a thread which is 10+ years old, but my contention is that the answer(s) here are inaccurate.
** PLEASE NOTE: I’m am specifically *not* recommending creating a spreadsheet with thousands of sheets;
if someone has the potential to do this there are likely to be many better ways of proceeding. **I’ve been developing an addin which I’ve stress tested: how many sheets can the addin’s analysis and functionality cope with?
I created an Excel spreadheet with over 31,000 sheets — but which is nonetheless only c25MB in size.
I successfully manipulated, saved and (just about!) re-opened the spreadsheet.Despite this there is no doubt in my mind that Excel struggles with its internal list of worksheets. And of course
human beings struggle somewhat more. What we need is an addin giving a robust navigation systemAndrew
When I try to set a longish worksheet name using ruby and win32ole with the following code:
require "win32ole"
excel = WIN32OLE.new('Excel.Application')
excel.Visible = 1
puts excel.version
workbook = excel.Workbooks.Add
worksheet1 = workbook.Worksheets.Add
worksheet1.Name = "Pseudopseudohypoparathyroidism" #Length 30, fine
worksheet2 = workbook.Worksheets.Add
worksheet2.Name = "Supercalifragilisticexpialidocious" #Length 34, not fine
I get the following:
12.0
-:9:in `method_missing': (in setting property `Name': ) (WIN32OLERuntimeError)
OLE error code:800A03EC in Microsoft Office Excel
You typed an invalid name for a sheet or chart. Make sure that:
The name that you type does not exceed 31 characters.
The name does not contain any of the following characters: : / ? * [ or ]
You did not leave the name blank.
HRESULT error code:0x80020009
Exception occurred.
from -:9:in `<main>'
The version 12.0 indicates that I’m running Excel 2007, but it’s complaining that the worksheet name is too long. I had a look at Excel 2007 specifications and limits as mentioned in this related answer, and I couldn’t find it mentioning any such limit. (Trying to rename a worksheet manually suggests there may be such a limit, however)
Is there a limit, and is it a hard limit or one that can be changed by changing the configuration of Excel?
asked Sep 10, 2010 at 2:05
Andrew GrimmAndrew Grimm
77.3k57 gold badges198 silver badges337 bronze badges
0
The file format would permit up to 255-character worksheet names, but if the Excel UI doesn’t want you exceeding 31 characters, don’t try to go beyond 31. App’s full of weird undocumented limits and quirks, and feeding it files that are within spec but not within the range of things the testers would have tested usually causes REALLY strange behavior. (Personal favorite example: using the Excel 4.0 bytecode for an if() function, in a file with an Excel 97-style stringtable, disabled the toolbar button for bold in Excel 97.)
answered Sep 10, 2010 at 2:24
7
Renaming a worksheet manually in Excel, you hit a limit of 31 chars, so I’d suggest that that’s a hard limit.
answered Sep 10, 2010 at 2:08
Andrew CooperAndrew Cooper
32.1k5 gold badges80 silver badges116 bronze badges
I use the following vba code where filename is a string containing the filename I want, and Function RemoveSpecialCharactersAndTruncate is defined below:
worksheet1.Name = RemoveSpecialCharactersAndTruncate(filename)
'Function to remove special characters from file before saving
Private Function RemoveSpecialCharactersAndTruncate$(ByVal FormattedString$)
Dim IllegalCharacterSet$
Dim i As Integer
'Set of illegal characters
IllegalCharacterSet$ = "*." & Chr(34) & "//[]:;|=,"
'Iterate through illegal characters and replace any instances
For i = 1 To Len(IllegalCharacterSet) - 1
FormattedString$ = Replace(FormattedString$, Mid(IllegalCharacterSet, i, 1), "")
Next
'Return the value capped at 31 characters (Excel limit)
RemoveSpecialCharactersAndTruncate$ = Left(FormattedString$, _
Application.WorksheetFunction.Min(Len(FormattedString), 31))
End Function
Tunaki
131k46 gold badges330 silver badges415 bronze badges
answered Feb 27, 2017 at 21:52
My solution was to use a short nickname (less than 31 characters) and then write the entire name in cell 0.
answered Nov 10, 2015 at 19:18
0
I just tested a couple paths using Excel 2013 on on Windows 7. I found the overall pathname limit to be 213 and the basename length to be 186. At least the error dialog for exceeding basename length is clear:
And trying to move a not-too-long basename to a too-long-pathname is also very clear:
The pathname error is deceptive, though. Quite unhelpful:
This is a lazy Microsoft restriction. There’s no good reason for these arbitrary length limits, but in the end, it’s a real bug in the error dialog.
answered Mar 29, 2018 at 16:01
tbc0tbc0
1,5291 gold badge17 silver badges21 bronze badges
-
#3
Kewl…thanks VoG.. ive 16gb of ram right now with intel i5 3.2GHz.
plan to upgrade to intel extreme i7 and intel extreme motherboard to make the excel run super much faster..
-
#4
Just out of curiousity, why/how so many sheets?
-
#5
A sheet is refer to a member.so there are 10 thousands members. i work for a multi level company and use excel to count.i know i should use ACCESS instead but i dont have knowledge..
Excel perform fast to me,i like it.when i run a macro,it just take about 3-4 minutes to count all the sheets.
-
#6
You really should move this out of Excel, the only reason you are getting speeds like that is because of the hardware.
It would probably take seconds in a database like Access, even on a machine with half the power.
-
#7
does Access still using same formulas like Excel?
will Access can run my currently macro?
if so,i will buy Access..
i just afraid i cant make it like what i want..
-
#8
1 No, you wouldn’t need formulas to count.
2 No, you wouldn’t need code to count.
-
#9
Oh, and buying Access might be a little cheaper than upgrading to an i7 Extreme.
-
#10
if i want to move to access,ive a week only to learn and recreate all the 10 thousands sheets..if it take much longer…then my boss will pissed up and he can fired me :/
is it hard to learn Access? my knowledge on Excel just basic only.