How do I give an AI chat a spreadsheet it can read?
Turn one sheet into a Markdown table, check its size in tokens and hide personal data before you paste it into a chat.
By OpenAnyDoc ·
The short answer
Turn the sheet you need into a Markdown table with Excel to Markdown, check how many tokens it takes, and paste it into the chat with a sentence saying what the columns mean. A Markdown table keeps every value under its column name, so ChatGPT, Claude or Gemini can read it row by row. Hide names, emails and other personal data first; the chat keeps whatever you paste.
Why not paste the cells or attach the workbook?
Copying cells out of Excel gives tab-separated text. That works for a small range, but in a chat box the tabs are invisible and a reader, human or AI, has to count them to know which value belongs to which column.
Attaching the .xlsx file sends the whole workbook: every sheet, hidden ones included, plus anything else stored in it. Often you only want one table read. Converting first means you choose exactly what leaves your device, and you can see it before you send it.
Markdown table or CSV?
Both work. The difference is readability against size. In our test, a synthetic table of 100 orders with 5 columns took 2,449 tokens as a Markdown table and 2,148 tokens as CSV, so the Markdown version was about 14% larger. The extra tokens are the pipes and the separator line.
- Choose a Markdown table when the table is small or medium, when cells contain commas, or when you want the chat to show the same table back to you.
- Choose CSV when the table is large and every token counts. Excel to CSV gives you the file; open it in any text editor and paste its text.
- For lists of records in JSON, the TOON format can be shorter still; see what TOON is and when it saves tokens.
One sheet at a time
Excel to Markdown converts the sheet you pick from its sheet list, one table per conversion. That is deliberate: two sheets with different columns pasted as one block confuse the reader about where one table ends. If the chat needs two sheets, paste them as two tables, each under a line such as "Sheet: Budget 2026".
To see what the whole workbook costs before you decide, drop it on the token counter: it counts every sheet, each written as a Markdown table under its sheet name.
Formulas or shown values?
The table holds each cell as Excel shows it. A formula appears as its result, and dates, percentages and prices keep their format, so 0.15 formatted as a percentage arrives as 15%. That is usually what you want the chat to reason about.
The formulas themselves are not in the table. If you want the chat to check or explain a formula, copy it from the formula bar and paste it as a separate line, with the cell it lives in. Merged cells give their value to the first cell of the range, and colours, fonts and comments are not kept, so if a colour carries meaning, add a column that says it in words.
How big is too big?
Chats measure what you paste in tokens, and the limit depends on the model and your plan. Long pastes can be refused, cut, or answered less carefully toward the end. Count first: the token counter shows the tokens, words and characters of a file or pasted text in your browser. Its count follows one common tokenizer, so for other models the number is an estimate.
If the number is high, make the table smaller before you paste it:
- Delete the columns the question does not need. IDs, internal codes and long notes are often the largest.
- Keep only the rows the question is about, or send a summary instead, made with Pivot table.
- Split a long table into parts with Split CSV and send them one message at a time.
Hide personal data first
Once pasted, the data is on the chat service's servers under its rules, not yours. If the sheet holds customer names, emails, phone numbers or ID numbers, run it through Mask data before you convert it. It finds those columns, replaces each value with a token such as EMAIL-000001, and gives the same value the same token everywhere, so the chat can still count, group and compare rows. Keep the private key if you want to put the real values back later. The guide to anonymizing a file before sharing explains the choices.
Step by step
The whole routine takes a minute, and the workbook is read by your browser at every step:
- Mask the workbook if it holds personal data, and save the masked copy.
- Open Excel to Markdown, choose the workbook and pick the sheet.
- Copy the table, paste it into the token counter if you are unsure of its size, and trim it if needed.
- In the chat, write one sentence about the table (what a row is, what each unclear column means), then paste the table and ask your question.
Other files
The same idea works for documents: a PDF with tables can go through PDF to Markdown, and the guides on Word documents and PowerPoint decks cover their own catches. For a CSV file, CSV to Markdown does the same job as the Excel tool.
Questions?
Write to support@openanydoc.com and describe the sheet and what the chat got wrong (no personal data).