Workbook vs Worksheet


Workbook vs Worksheet Interview with follow-up questions

1. Can you explain the difference between a workbook and a worksheet in Excel?

A workbook is the Excel file itself — the .xlsx file you open, save, and share. Think of it as a binder. A single workbook can contain one or many worksheets and also stores charts, named ranges, macros, the data model (Power Pivot), and other objects.

A worksheet (or sheet) is a single tab inside the workbook — the actual grid of rows and columns where you enter and work with data. Think of each worksheet as one page in the binder. By default, a new workbook starts with one sheet named "Sheet1", but you can add, rename, delete, move, or copy sheets as needed.

Practical distinctions:

Workbook Worksheet
File extension .xlsx, .xlsm, etc. N/A — it exists inside a workbook
Limit Essentially one file Up to ~1,024 sheets per workbook (memory-limited)
Reference syntax File name in external links SheetName!CellRef (e.g., Sales!B5)
Protection Protect Workbook (structure/windows) Protect Sheet (cell editing)

Cross-sheet referencing: To use a value from another sheet in a formula, prefix the cell address with the sheet name and an exclamation mark: =Summary!B2. If the sheet name contains spaces, wrap it in single quotes: ='Q1 Sales'!B2.

Interviewers sometimes follow up by asking about the difference between Protect Sheet and Protect Workbook — Protect Sheet locks cell contents on a specific worksheet, while Protect Workbook prevents users from adding, deleting, moving, or renaming sheets.

↑ Back to top

Follow-up 1

Can you give an example of when you might use multiple worksheets within a single workbook?

Multiple worksheets within a single workbook can be useful in various scenarios. For example:

  • If you are working on a complex project with different aspects or stages, you can create separate worksheets for each aspect or stage to keep the data organized.
  • If you are creating a budget or financial report, you can use separate worksheets for different categories or sections, such as income, expenses, and summary.
  • If you are analyzing data from different sources or time periods, you can use separate worksheets to store and compare the data.

Follow-up 2

How can you navigate between different worksheets in a workbook?

To navigate between different worksheets in a workbook, you can use the sheet tabs located at the bottom of the Excel window. Each sheet tab represents a worksheet in the workbook. You can click on a sheet tab to activate and display that particular worksheet. Additionally, you can use the keyboard shortcut Ctrl + Page Up to move to the previous worksheet and Ctrl + Page Down to move to the next worksheet.

Follow-up 3

What is the maximum number of worksheets you can have in a workbook?

The maximum number of worksheets you can have in a workbook depends on the version of Excel you are using. In Excel 2019, Excel 2016, and Excel 2013, the maximum number of worksheets is 1,048,576. In earlier versions of Excel, such as Excel 2010 and Excel 2007, the maximum number of worksheets is 65,536.

Follow-up 4

How can you rename a worksheet?

To rename a worksheet in Excel, you can follow these steps:

  1. Right-click on the sheet tab of the worksheet you want to rename.
  2. Select the 'Rename' option from the context menu.
  3. Type the new name for the worksheet and press Enter.

Alternatively, you can also double-click on the sheet tab to activate the rename mode and directly edit the name of the worksheet.

2. How would you move or copy a worksheet within a workbook?

Moving or copying a worksheet within a workbook is a common task done through the Excel UI — no VBA required for everyday work.

Using the mouse (quickest method):

  • Move: Click and drag the sheet tab to the desired position along the tab bar.
  • Copy: Hold Ctrl while dragging the sheet tab — a small "+" icon appears, and a copy is placed where you release.

Using the right-click menu:

  1. Right-click the sheet tab you want to move or copy.
  2. Select Move or Copy…
  3. In the dialog, choose the target workbook (current workbook or any open workbook) and the position (before which sheet to insert it).
  4. Check Create a copy if you want a duplicate rather than a move.
  5. Click OK.

Using the ribbon:

Home tab > Format > Move or Copy Sheet — opens the same dialog as above.

Keyboard shortcut: There is no direct shortcut for the Move or Copy dialog, but you can right-click a tab quickly with Shift + F10 (Windows) when the tab is selected.

Naming tip: After copying, Excel appends "(2)" to the sheet name automatically. Right-click the tab and choose Rename (or double-click the tab) to give it a meaningful name.

Between workbooks: In the Move or Copy dialog, the "To book" dropdown lists all currently open workbooks. Selecting a different workbook moves or copies the sheet across files, which is useful for consolidating data.

↑ Back to top

Follow-up 1

What happens if you try to move a worksheet to a location that already has a worksheet with the same name?

If you try to move a worksheet to a location that already has a worksheet with the same name, Excel will throw an error. You need to ensure that the destination location does not have a worksheet with the same name before moving the worksheet.

Follow-up 2

Can you explain how to create a copy of a worksheet within the same workbook?

To create a copy of a worksheet within the same workbook, you can use the copy() method of the Worksheet object in Excel VBA. Here's an example:

Sub CopyWorksheet()
    Dim ws As Worksheet
    Set ws = ThisWorkbook.Worksheets("Sheet1")
    ws.Copy After:=ThisWorkbook.Worksheets(ThisWorkbook.Worksheets.Count)
End Sub

This will create a copy of the worksheet and place it after the last worksheet in the workbook.

Follow-up 3

What is the difference between moving and copying a worksheet?

The main difference between moving and copying a worksheet is that moving a worksheet will remove it from its original location and place it in the new location, while copying a worksheet will create a duplicate of the worksheet in the new location without removing it from its original location. When you move a worksheet, any references to that worksheet in formulas or VBA code will be updated to reflect the new location. When you copy a worksheet, the original worksheet and the copied worksheet will have the same name, so you may need to rename the copied worksheet to avoid conflicts.

3. Can you explain how to reference a cell in a different worksheet?

To reference a cell in a different worksheet, use the sheet name followed by an exclamation mark (!) and then the cell address:

=SheetName!CellAddress

Examples:

  • =Sheet2!A1 — returns the value in cell A1 on Sheet2.
  • =Summary!B5 — returns the value in cell B5 on the sheet named "Summary".
  • ='Q1 Sales'!C10 — if the sheet name contains spaces or special characters, wrap it in single quotes.

Building a cross-sheet reference interactively (recommended in practice):

  1. Start typing a formula in your destination cell (e.g., =).
  2. Click the tab of the target sheet.
  3. Click the cell you want to reference — Excel builds the reference syntax automatically.
  4. Press Enter to confirm. Excel returns you to the original sheet.

This avoids typos in sheet names.

Referencing a range across multiple sheets (3D reference):

You can reference the same cell or range across a consecutive group of sheets using a colon between sheet names:

=SUM(Sheet1:Sheet3!B2)

This sums cell B2 from Sheet1, Sheet2, and Sheet3 — useful for consolidating monthly data stored on separate sheets.

External workbook reference: To reference a cell in a different workbook, the syntax is =[WorkbookName.xlsx]SheetName!CellAddress. When the source workbook is closed, the full file path appears instead.

↑ Back to top

Follow-up 1

What is the syntax for referencing a cell in a different worksheet?

The syntax for referencing a cell in a different worksheet is 'SheetName!CellReference'. Replace 'SheetName' with the actual name of the worksheet you want to reference, and 'CellReference' with the specific cell you want to reference. For example, to reference cell B2 in a worksheet named 'Data', you would use the formula 'Data!B2'.

Follow-up 2

Can you give an example of when you might need to reference a cell in a different worksheet?

Sure! Let's say you have a workbook with multiple worksheets, and you want to perform a calculation in one worksheet based on the value in a cell from another worksheet. You can use cell references to retrieve the value from the other worksheet and use it in your calculation. For example, if you have a worksheet named 'Sales' and another worksheet named 'Expenses', you can reference a cell in the 'Expenses' worksheet to calculate the profit in the 'Sales' worksheet.

Follow-up 3

What happens if you reference a cell in a worksheet that doesn't exist?

If you reference a cell in a worksheet that doesn't exist, you will get a #REF! error in the cell where the reference is used. This error indicates that the referenced worksheet or cell cannot be found. To resolve this error, you need to make sure that the referenced worksheet exists and that the cell reference is correct.

4. How would you protect a worksheet from being edited?

To protect a worksheet so its contents cannot be edited without a password:

Steps:

  1. Optionally, first unlock any cells you want to remain editable: select those cells, press Ctrl+1, go to the Protection tab, and uncheck Locked. All cells are locked by default, but this only takes effect once sheet protection is turned on.
  2. Go to the Review tab in the ribbon.
  3. Click Protect Sheet.
  4. Optionally enter a password. Without a password, anyone can unprotect the sheet — useful for advisory protection, not security.
  5. Use the checkboxes to specify what users can still do on the protected sheet: select cells, sort, use AutoFilter, insert rows, etc.
  6. Click OK (and confirm the password if set).

What it does: Users who try to edit a locked cell see an error message. Formulas and formatting in locked cells are preserved.

Removing protection: Review tab > Unprotect Sheet, then enter the password if one was set.

Protect Sheet vs. Protect Workbook:

  • Protect Sheet — prevents editing of cell contents on one worksheet.
  • Protect Workbook (Review > Protect Workbook) — prevents structural changes: adding, deleting, renaming, moving, or hiding sheets. It does not lock cell contents.

Use both together for stronger control. Note that sheet protection is not encryption — for truly sensitive data, use workbook-level password encryption via File > Info > Protect Workbook > Encrypt with Password.

↑ Back to top

Follow-up 1

Can you explain the steps to protect a worksheet?

Sure! Here are the steps to protect a worksheet:

  1. Open the worksheet you want to protect.
  2. Click on the 'Review' tab in the Excel ribbon.
  3. In the 'Changes' group, click on the 'Protect Sheet' button.
  4. A dialog box will appear with various options for protecting the sheet. You can choose to password protect the sheet, specify which elements can be edited, and more.
  5. Once you have selected your desired protection options, click on the 'OK' button.

After following these steps, the worksheet will be protected and users will not be able to edit the protected elements unless they have the password or the necessary permissions.

Follow-up 2

What happens when a worksheet is protected?

When a worksheet is protected, certain actions that can modify the worksheet are restricted. These actions include:

  • Editing cells
  • Formatting cells
  • Inserting or deleting rows and columns
  • Sorting and filtering data
  • Renaming or deleting worksheets

By default, protecting a worksheet also prevents users from viewing formulas in cells. However, you can choose to allow users to view the contents of protected cells while still preventing them from editing.

It's important to note that protecting a worksheet does not encrypt the data in the worksheet. It only restricts certain actions to maintain the integrity of the worksheet.

Follow-up 3

Can you still view the contents of a protected worksheet?

By default, when a worksheet is protected, users are not able to view the contents of protected cells. However, you can choose to allow users to view the contents of protected cells while still preventing them from editing. This can be done by selecting the 'Protect Sheet' option and checking the 'Select locked cells' checkbox in the 'Protect Sheet' dialog box.

When this option is enabled, users will be able to select and view the contents of locked cells, but they will not be able to edit or modify them.

Follow-up 4

How can you unprotect a worksheet?

To unprotect a worksheet that has been previously protected, follow these steps:

  1. Open the protected worksheet.
  2. Click on the 'Review' tab in the Excel ribbon.
  3. In the 'Changes' group, click on the 'Unprotect Sheet' button.
  4. If the worksheet is password protected, you will be prompted to enter the password.
  5. Once the correct password is entered, the worksheet will be unprotected and all restrictions on editing and formatting will be removed.

It's important to note that you can only unprotect a worksheet if you have the password or the necessary permissions to do so.

5. Can you explain how to delete a worksheet from a workbook?

Deleting a worksheet from a workbook in Excel is a UI operation — no coding required.

Method 1 — Right-click the sheet tab (most common):

  1. Right-click the tab of the worksheet you want to delete.
  2. Select Delete from the context menu.
  3. If the sheet contains any data, Excel prompts: "This sheet may contain data. Are you sure you want to delete it?" Click Delete to confirm.

Method 2 — Ribbon:

  1. Click the sheet tab to make it active.
  2. Go to the Home tab > Cells group > Delete dropdown > Delete Sheet.

Important notes:

  • Deleting a sheet is permanent and cannot be undone with Ctrl+Z. Excel specifically prevents undo for sheet deletion. Double-check before confirming.
  • You cannot delete a sheet if it is the only sheet in the workbook — a workbook must contain at least one visible sheet.
  • If a sheet is referenced by formulas in other sheets, deleting it causes those formulas to return a #REF! error.

Hiding vs. deleting: If you want to keep the data but remove the sheet from view, consider hiding it instead: right-click the tab > Hide. A hidden sheet can be unhidden later via right-click > Unhide. For stronger concealment, you can set a sheet to "Very Hidden" via the VBA editor (a user cannot unhide it through the normal UI).

↑ Back to top

Follow-up 1

What happens to the data in a worksheet when it is deleted?

When a worksheet is deleted from a workbook, all the data in that worksheet is permanently removed. This includes any text, numbers, formulas, formatting, and other content that was present in the worksheet.

Follow-up 2

Can you recover a worksheet once it has been deleted?

No, once a worksheet is deleted from a workbook, it cannot be recovered. It is important to make sure that you have a backup of the workbook or any important data before deleting a worksheet.

Follow-up 3

What precautions should you take before deleting a worksheet?

Before deleting a worksheet, it is recommended to take the following precautions:

  1. Make sure you have a backup of the workbook or any important data.
  2. Double-check that you are deleting the correct worksheet.
  3. Consider renaming the worksheet instead of deleting it, if you may need the data in the future.
  4. Check if any other worksheets or formulas depend on the data in the worksheet you are planning to delete, and update them accordingly.

Live mock interview

Mock interview: Workbook vs Worksheet

Intermediate ~5 min Your own free AI key

Your voice and your AI key never touch our servers; the key stays in this browser and is sent only to Google. Only your round scores are saved to track progress.