> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chief.bot/llms.txt
> Use this file to discover all available pages before exploring further.

# Working with spreadsheets (CSV/XLS) & the "spreadsheets locked" notice

> CSV and XLS files hold structured data, so Chief treats them differently from documents.

## Why spreadsheets are different

<Frame>
  <img src="https://mintcdn.com/chief-2d405d1a/BBGD1uH7sfT84ugx/images/help/library-spreadsheet-card.png?fit=max&auto=format&n=BBGD1uH7sfT84ugx&q=85&s=b342a330906aeb1a5eb111bc100f985e" alt="Chief: Working with spreadsheets — the CSV in your Library with a table preview" width="612" height="824" data-path="images/help/library-spreadsheet-card.png" />
</Frame>

CSV and XLS files hold structured data, so [Chief treats them differently](/help/how-chief-works-magic-under-the-hood/how-chief-processes-spreadsheets) from documents. To work with a spreadsheet, you add it to your chat individually rather than relying on Chief to [pull it in automatically with the rest of your knowledge](/help/your-knowledge-library/how-chief-uses-your-files-to-answer-questions).

## Add a spreadsheet to a chat

<Frame>
  <img src="https://mintcdn.com/chief-2d405d1a/BBGD1uH7sfT84ugx/images/help/library-spreadsheet-tab.png?fit=max&auto=format&n=BBGD1uH7sfT84ugx&q=85&s=a15c05b025cc9b1328e29a426f47855b" alt="Chief: Working with spreadsheets — the Spreadsheets tab in the Add to chat picker" width="1130" height="670" data-path="images/help/library-spreadsheet-tab.png" />
</Frame>

1. Open the file picker for your chat and [find your spreadsheets](/help/the-prompt-bar-scope/setting-the-scope-of-a-chat-using-files-labels-collections-concepts).
2. CSV and XLS files appear under their own tab, separate from your other files.
3. Select the spreadsheet you want to work with so it is added to the chat.
4. [Ask your question](/help/chatting-with-chief/asking-good-questions-prompting-best-practices). Chief now works directly with that spreadsheet's data.

<Note>
  ℹ️ **Good to Know:** Structured data files must be added to your chat individually to work with them. If a CSV or XLS file was not included automatically, that is expected — add it yourself.
</Note>

## The "spreadsheets locked" notice

When every one of your non-spreadsheet files is already selected for a chat, spreadsheets become **Unavailable when all files selected**. The notice points you to a **Click here** link to enable spreadsheets, and you will see the guidance: **You need to deselect at least 1 file to use spreadsheets**. Deselect one file and your spreadsheets become selectable again. This friction only appears on larger projects — once you have more than 25 non-spreadsheet files; smaller projects never lock spreadsheets.

**Related articles:** [How Chief processes spreadsheets](/help/how-chief-works-magic-under-the-hood/how-chief-processes-spreadsheets) · [Uploading files and supported file types](/help/your-knowledge-library/uploading-files-supported-file-types) · [Setting the scope of a chat](/help/the-prompt-bar-scope/setting-the-scope-of-a-chat-using-files-labels-collections-concepts) · [What is the Library?](/help/your-knowledge-library/what-is-the-library)

## FAQ

<AccordionGroup>
  <Accordion title="My CSV files were not included in the chat. Did something go wrong?">
    No. Spreadsheets are added individually by design. Open the picker, switch to the CSV/XLS tab, and add the file you want.
  </Accordion>

  <Accordion title="Why are my spreadsheets greyed out?">
    Spreadsheets are unavailable when all of your other files are selected. Deselect at least one file to make spreadsheets selectable again.
  </Accordion>
</AccordionGroup>
