Max no of sheets in excel

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.

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

  1. 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.


  2. 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 e10000

    select sheet1

    save

    look at size.

    nuf said.


    keepITcool
    | www.XLsupport.com | keepITcool chello nl | amsterdam

    deko 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.


  3. 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.
    >
    >


  4. 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


  5. 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
    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?


  6. 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.
    >
    >


  7. 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.
    >
    >


  8. 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?
    >
    >


  9. 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


  10. 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?
    > >
    > >

    >
    >


  11. 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…


  12. 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


  13. 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


  14. 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

    >
    >


  15. 09-26-2018, 09:07 AM


    #15

    coolactuary is offline


    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 system

    Andrew


  • #1

Anybody know what the maximum number of sheets Excel can create is?

I have a process that creates a huge number of sheets formatting them and putting them in workbooks for distribution.

I can run it twice without shutting Excel down. If I run it a 3rd time, I eventually get an error message on a call to add a worksheet. Once this happens, if I try to delete a sheet, move a sheet or add a sheet, Excel crashes. It would be nice to know where the maximum is so that I can through a stop in the process before crashing hard.

Select a hidden cell

Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.

  • #3

I am using 2010.

That is the number of sheets in a single book.

I have a master book that adds sheets and then moves them to another book. No single book has more than 10 sheets in it. It is generally either 7 or 3 sheets in a book. When the process finishes there are 283 books.

Each time Sheets.Add is called, a new numbered sheet is obtained. Somewhere between sheet10903 and sheet11150, Sheet.Add fails (the sheet is actually created in the master book but an error is returned) and when I do anything to add, delete or move a sheet, Excel crashes.

  • #4

Without knowing more details, I would say it is a toss up between your Software Limits or your Hardware Limits.

Maybe you could batch process, say to 250 workbooks at a time?

  • #5

Yes it is definitely a limit in the software. Sheets.Add should NEVER cause Excel to crash. The entire run never exceed 1/2 of system memory. I can make 2 complete runs but then I have to exit Excel before the 3rd run.

  • #6

I see this issue pop up every now and then, and I believe a solution (or workaround) is to periodically save the master book between creating sheets.

If you’re creating about 10 sheets per book, then save the MASTER book between each «other book» that the sheets are moved to.

Also, instead of creating the sheets in the master book, then MOVING them to another book..
Why not create the sheets in «the other book» in the first place??

I am using 2010.

That is the number of sheets in a single book.

I have a master book that adds sheets and then moves them to another book. No single book has more than 10 sheets in it. It is generally either 7 or 3 sheets in a book. When the process finishes there are 283 books.

Each time Sheets.Add is called, a new numbered sheet is obtained. Somewhere between sheet10903 and sheet11150, Sheet.Add fails (the sheet is actually created in the master book but an error is returned) and when I do anything to add, delete or move a sheet, Excel crashes.

BSALV

Содержание

  1. XLS and XLSX: Maximum Number of Columns and Rows
  2. How many sheets, rows, and columns can a spreadsheet have?
  3. How to get to the last row of a worksheet
  4. How to get to the last column of a worksheet
  5. How many sheets are there in an Excel workbook?
  6. How many characters can fit into a single cell?
  7. How are rows and columns labeled?
  8. Excel specifications and limits
  9. Worksheet and workbook specifications and limits
  10. Calculation specifications and limits
  11. Why is there still a row limit in Microsoft Excel? [closed]
  12. 2 Answers 2
  13. Max number of worksheets in a workbook?
  14. Max number of worksheets in a workbook?
  15. Re: Max number of worksheets in a workbook?
  16. Re: Max number of worksheets in a workbook?
  17. Re: Max number of worksheets in a workbook?
  18. Re: Max number of worksheets in a workbook?
  19. Re: Max number of worksheets in a workbook?
  20. Re: Max number of worksheets in a workbook?
  21. Re: Max number of worksheets in a workbook?
  22. Re: Max number of worksheets in a workbook?
  23. Re: Max number of worksheets in a workbook?
  24. Re: Max number of worksheets in a workbook?
  25. Re: Max number of worksheets in a workbook?
  26. Re: Max number of worksheets in a workbook?
  27. Re: Max number of worksheets in a workbook?
  28. Re: Max number of worksheets in a workbook?

XLS and XLSX: Maximum Number of Columns and Rows

Info by Stefan Trost | Last update on 2022-11-17 | Created on 2018-01-19

The maximum number of possible columns and rows in Microsoft Excel is not unlimited. Instead, the limit differs from program version to program version and is moreover depending on whether the file format is XLSX or XLS.

Here is a table of previous versions and formats of Excel as well as the maximum number of rows and columns allowed for the corresponding version and format.

Version Format Max. Rows Max. Columns
Excel 365 XLSX 1.048.576 16.384 (XFD)
Excel 2021 XLSX 1.048.576 16.384 (XFD)
Excel 2019 XLSX 1.048.576 16.384 (XFD)
Excel 2016 (16.0) XLSX 1.048.576 16.384 (XFD)
Excel 2013 (15.0) XLSX 1.048.576 16.384 (XFD)
Excel 2010 (14.0) XLSX 1.048.576 16.384 (XFD)
Excel 2007 (12.0) XLSX 1.048.576 16.384 (XFD)
Excel 2003 (11.0) XLS 65.536 256 (IV)
Excel 2002 (10.0) XLS 65.536 256 (IV)
Excel 2000 (9.0) XLS 65.536 256 (IV)
Excel 97 (8.0) XLS 65.536 256 (IV)
Excel 95 (7.0) XLS 16.384 256 (IV)
Excel 5.0 (1993) XLS 16.384 256 (IV)
Excel 4.0 (1992) XLS 16.384 256 (IV)
Excel 3.0 (1990) XLS 16.384 256 (IV)
Excel 2.0 (1987) XLS 16.384 256 (IV)
Excel 1.0 (1985) XLS 16.384 256 (IV)

In the first versions of Excel from 1985 on, only 16,384 lines and 256 columns were allowed. This made it possible to use the columns from column A to column IV. The last usable field in the lower right corner was accordingly the field IV16384. With this, a maximum of 4,341,760 cells of the XLS sheet could be used in the Excel versions from 1.0 to 7.0.

Starting with Excel 97 (version 8.0), the maximum number of lines for the XLS format was increased to 65,536, the maximum number of columns remained unchanged. So, a maximum of 16,777,216 cells are usable in an XLS sheet.

First ten years later with Excel 2007 (version 12.0) and the introduction of the XLSX format, there was a further increase in the number of permitted fields. From this time on, 1,048,576 rows and 16,384 columns (that is from column A to the XFD column) were possible. Til today, this number has not been increased again. Overall, a current Excel spreadsheet can therefore comprise 17,179,869,184 cells. Incidentally, this increase only applies to the XLSX format. If you use a current version of Excel to store a sheet in the old XLS format, the limit of 65,536 lines and 256 columns introduced with Excel 97 is there still today. If you nevertheless try to save a spreadsheet that exceeds this range in XLS format, Excel will issue an error message and not save the corresponding field(s).

Since Excel 2016 up to the current Excel 365 offered in a subscription model, Microsoft has not only kept the same number of permitted rows and columns, but has also frozen the version number on 16, since instead of discrete versions, there should be continuously new features rolled out via the Windows update in future. It remains to be seen whether Microsoft someday will give us more columns or more rows via this update again.

Источник

How many sheets, rows, and columns can a spreadsheet have?

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.

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.

Источник

Excel specifications and limits

Worksheet and workbook specifications and limits

Limited by available memory and system resources

Total number of rows and columns on a worksheet

1,048,576 rows by 16,384 columns

1,026 horizontal and vertical

Total number of characters that a cell can contain

Characters in a header or footer

Maximum number of line feeds per cell

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

Line weight and styles

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

Panes in a window

Limited by available memory

Limited by available memory; a summary report shows only the first 251 scenarios

Changing cells in a scenario

Adjustable cells in Solver

Limited by available memory

10 percent to 400 percent

Limited by available memory

64 in a single sort; unlimited when using sequential sorts

Fields in a data form

255 parameters per workbook

Items displayed in filter drop-down lists

Noncontiguous cells that can be selected

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.

File name length

218 characters — This includes the file path. For example, C:UsernameDocumentsFileName.xlsx.

Calculation specifications and limits

Smallest allowed negative number

Smallest allowed positive number

Largest allowed positive number

Largest allowed negative number

Largest allowed positive number via formula

Largest allowed negative number via formula

Источник

Why is there still a row limit in Microsoft Excel? [closed]

Want to improve this question? Update the question so it’s on-topic for Stack Overflow.

Closed 14 years ago .

Until Office 2007, Excel has a maximum of 65,000 rows. Office 2007 bumped that up to a max of 1 million rows, which is nicer of course; but I’m curious — why is there a limit at all? Obviously, performance will slow down exponetially as you increase the spreadsheet size; but it shouldn’t be very hard to have Excel optimize for that by starting with a small sheet and dynamically «re-sizing» it only as needed. Given how much work it must have been to increase the limit from 65K to 1 million, why didn’t they go all the way so it’s limited only by the amount of available memory and disk space?

2 Answers 2

Probably because of optimizations. Excel 2007 can have a maximum of 16 384 columns and 1 048 576 rows. Strange numbers?

14 bits = 16 384, 20 bits = 1 048 576

14 + 20 = 34 bits = more than one 32 bit register can hold.

But they also need to store the format of the cell (text, number etc) and formatting (colors, borders etc). Assuming they use two 32-bit words (64 bit) they use 34 bits for the cell number and have 30 bits for other things.

Why is that important? In memory they don’t need to allocate all the memory needed for the whole spreadsheet but only the memory necessary for your data, and every data is tagged with in what cell it is supposed to be in.

Update 2016:

  • Open workbooks: Limited by available memory and system resources
  • Worksheet size: 1,048,576 rows (20 bits) by 16,384 columns (14 bits)
  • Column width: 255 characters (8 bits)
  • Row height: 409 points
  • Page breaks: 1,026 horizontal and vertical (unexpected number, probably wrong, 10 bits is 1024)
  • Total number of characters that a cell can contain: 32,767 characters (signed 16 bits)
  • Characters in a header or footer: 255 (8 bits)
  • 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: 64,000 (16 bits = 65536)
  • Fill styles: 256 (8 bits)
  • Line weight and styles: 256 (8 bits)
  • Unique font types: 1,024 (10 bits) 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: 66,530 hyperlinks (unexpected number, probably wrong. 16 bits = 65536)
  • 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

Источник

Max number of worksheets in a workbook?

LinkBack
Thread Tools
Rate This Thread
Display

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.

Re: Max number of worksheets in a workbook?

just create a workbook with 100 sheets

select all sheets

type1 in a1
type1 in e10000


keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam

deko 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.

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» 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.
>
>

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

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
repeat

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?

Re: Max number of worksheets in a workbook?

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» 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.
>
>

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» 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.
>
>

Re: Max number of worksheets in a workbook?

You might check out Charles Williams’ sight:


Regards,
Tom Ogilvy

«deko» 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?
>
>

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?

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» 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.
> >
> >

Re: Max number of worksheets in a workbook?

hopefully he can see fine.


Regards,
Tom Ogilvy

«Tom Ogilvy» 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» 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?
> >
> >
>
>

Re: Max number of worksheets in a workbook?

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.

Re: Max number of worksheets in a workbook?

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

Best wishes Harald

«Dave Peterson» 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» 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

Re: Max number of worksheets in a workbook?

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
>
>
> Best wishes Harald
>
> «Dave Peterson» 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» 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

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» 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
>
>
> Best wishes Harald
>
> «Dave Peterson» 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» 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
>
>

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 system

Источник

Like this post? Please share to your friends:
  • Max no of columns in excel
  • Max if in excel formula
  • Max if and array excel
  • Max function in excel with if
  • Max function for excel