> For the complete documentation index, see [llms.txt](https://guide.digicust.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.digicust.com/features/data-extraction/excel-files.md).

# Excel Files

Often, our clients have line item information in XLSX files. Digicust can extract and use those in combination with information from your PDF documents to create customs declarations.

There are two cases for handling XLSX data:

* Case 1: The XLSX file is a table of line items.
* Case 2: The XLSX file is actually a complete invoice.

### &#x20;XLSX as table of line items

To use the XLSX data as table of line items in combination with other documents, we recommend creating an extra XLSX execution strategy. Call it, for example, "Import XLSX".

Now, open the execution strategy settings and check the following options:

<figure><img src="/files/seJyaAhQPe3CVnQp5Rry" alt=""><figcaption><p>Check "Handle XLSX Uploads"</p></figcaption></figure>

<figure><img src="/files/67D8zWcbCR0pOZWHYlkh" alt=""><figcaption><p>Check "Ignore line items from invoice"</p></figcaption></figure>

This strategy works if and only if the following conditions are met:

* The first row in the excel file describes the column headers.
* The second row and below are one line item each.
* All data is in the first sheet of the excel file.

In all other aspects, the XLSX is handled just the way a packing list would be handled.

### XLSX as invoice

If your XLSX contains all data that a regular invoice would contain, simply activate the following option in the execution strategy settings:

<figure><img src="/files/IS64Mmm2RZ6rlPMF0vAq" alt=""><figcaption></figcaption></figure>

This strategy works if and only if the following conditions are met:

* The invoice is in the first sheet of the excel file


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://guide.digicust.com/features/data-extraction/excel-files.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
