CommentsToSheets

Guides

How to analyse comments with ChatGPT, starting from a spreadsheet

An AI assistant can label sentiment, group themes and pull out questions from a comment section in a minute, and it works on the text you give it. So the job has two halves: get every comment into a file, then ask precise questions about that file and check the answers. This guide covers both, for comments from Instagram, TikTok, YouTube and Facebook.

Updated Nov 28, 2026 · 7 min read

Can ChatGPT analyse the comments on a post?

Yes, once it has them. An assistant does not hold the comment section of your post, and pasting a link to the post does not reliably give it one: comment sections load in pieces, behind scrolling, and often behind a login. Pasting comments in by hand works for thirty of them. For three hundred or thirty thousand you need a file, with one comment per row, that you can also open yourself to check what the assistant says.

That file is what an export gives you. Paste the post's link on the page for its network (Instagram, TikTok, YouTube, Facebook) and download the result. Any assistant that accepts an uploaded spreadsheet can read it; this guide says ChatGPT because that is the one people ask about, and the method is the same in the others. Upload sizes and limits depend on the assistant and on your plan, so check its help pages for the current numbers.

Which file to hand over

Give it the CSV, not the workbook. A CSV is one table with nothing to misread, and it is the smallest file for the same rows.

  1. Filter first. On the export page, set the filters before you download: top-level comments only if replies are mostly "thanks" and tags, a date range for the launch week, a minimum number of likes for the comments people agreed with. The CSV holds exactly the rows on screen.
  2. Keep the # column. It numbers the rows of the file, so it is the key that joins the assistant's answer back to your sheet. It is safer for this than comment_id, which is long enough to be rounded when a table is pasted.
  3. Drop what the question does not need. For sentiment or themes that is every column except #, comment and perhaps likes. Open the CSV, delete username, user_id and the reply columns, and save. The comments are public, but there is no reason to upload who wrote them when the question is what was said.
  4. Give replies their context. A reply such as "same here" means nothing alone. If you include replies, add the parent's text in a new column before uploading: with the full export in a sheet, =IF(H2="yes", XLOOKUP(I2, B:B, E:E, ""), "") looks up the comment each reply answers.

If the text is messy, clean it first with the steps in how to clean comments in a spreadsheet. Comments that are only emoji are worth keeping: they carry sentiment.

Prompts that return something you can use

Ask for a table, name the columns, and ask it to say how many rows it read. A summary paragraph cannot be checked; a table can.

Sentiment, one row per comment:

The attached CSV has one social media comment per row.
For every row, return a table with three columns:
"#" (copied from the file), "label" (positive, negative, neutral or mixed)
and "reason" (five words at most).
Label what the commenter feels about the product or post, not about other commenters.
Treat emoji as part of the text. Do not skip rows.
Tell me how many rows you read and how many you labelled.
Give me the table as a downloadable CSV.

Themes with counts:

Read every row of the attached CSV.
Propose 6 to 10 themes that cover what people talk about.
Then assign each row to exactly one theme and return "#", "theme".
Finish with a table of themes, the number of rows in each,
and three "#" values per theme as examples I can look up.

Questions to answer:

List the rows that ask a question the account owner could answer.
Return "#", the question in the commenter's words, and a topic
(price, shipping, sizing, availability, how-to, other).

Write the prompt in the language you want the labels in. The comments can be in any mix of languages; say so in the prompt if the audience is multilingual, and ask it to label in place and not to translate.

Join the answer back to your sheet

Put the comments in a tab named Comments (upload the workbook or use Copy for Sheets) and the assistant's table in a tab named Labels, with # in column A and the label in column B. In the first free column of Comments, N, in Google Sheets or Excel 365:

=XLOOKUP(A2, Labels!A:A, Labels!B:B, "")

Fill it down. Now every comment has its label beside its text, date, likes and author, and the questions that matter are one pivot away:

  • Rows per label, and the share of each: a pivot with the label in Rows and Count of # in Values. The pivot table guide has the clicks.
  • Likes per label: add Sum of likes. A negative comment with 400 likes weighs more than forty with none.
  • Label by day: put the date in Columns to see whether the mood changed after a reply from the brand.

Count the blanks in column N before anything else: =COUNTIF(N2:N, ""). A blank is a row the assistant skipped. Send those rows again.

Check it before you report it

An assistant will always return a confident table. Three checks take ten minutes:

  1. The row count. The number of rows it says it read must equal the rows in your file. If the file was long and the answer came quickly with round numbers, it may have worked from a sample. Ask it directly, or send the file in parts, for example one date range at a time using the date filter on the export page.
  2. A hand sample. Sort the sheet by a random number (=RAND() in a spare column), read the first fifty comments and write your own label beside each. Agreement is =SUMPRODUCT(--(N2:N51=O2:O51))/50. Report that figure with the results.
  3. A second method. Score the same rows with a word list, as in sentiment analysis in Google Sheets without code, and read the rows where the two disagree. They are usually sarcasm, slang or an emoji doing the talking, and they show you where either method is weak.

Expect mistakes on sarcasm, on in-jokes of the community, on short replies without their parent, and on product names that are also ordinary words.

What the export already answers without AI

Several questions people bring to an assistant are already counted in the Excel workbook, exactly and for every row:

  • Words and Emoji: the most used words and every emoji, with how many comments use each. How they are counted is in word frequency and top emoji.
  • Questions: every comment that reads as a question. To sort them by intent with a formula, see questions and buying intent with REGEXMATCH.
  • Most liked: the comments other people agreed with, in order.
  • Commenters and Per day: who said the most, and when.

Use the assistant for what counting cannot do: meaning, tone and themes. Use the sheets for anything that is a count, because a count from a formula is the same every time you run it.

For research and client work

If the result goes into a thesis, a paper or a client report, write down what you did: the post link, the date and time the comments were read, comments read next to the count the network showed, the filters, the exact prompt, the assistant and model, and your agreement figure from the hand sample. The first four are on the Read me sheet of the workbook. The page on comments for research and sentiment analysis lists what a method section should state, and your institution or client may have its own rules on sending data to an AI service: check them before you upload.

For several posts or networks at once, stack the exports first, as in compare comments across networks in one sheet, then number the stacked rows yourself so the key is unique across files.

FAQ

Can ChatGPT analyse Instagram comments?

Yes, when you give it the comments as a file. It does not have the comment section of a post by itself, so export the post to CSV first, upload that, and ask for a table with one row per comment.

Can ChatGPT do sentiment analysis?

Yes. Ask it to label each row positive, negative, neutral or mixed and to return the row number with each label. Then check a hand sample of fifty rows, because it makes mistakes on sarcasm, slang and short replies.

Which file should I upload, CSV or Excel?

The CSV. It is one plain table, the smallest file for the same rows, and you can delete the username and ID columns before uploading.

How do I get the labels back next to my comments?

Keep the # column in the file you upload and ask for it in the answer. Paste the returned table into a second tab and use XLOOKUP on # to bring each label beside its comment.

How many comments can it handle at once?

That depends on the assistant and your plan, and it changes. Whatever the limit, ask it to state how many rows it read, and split a long file by date range if the number does not match your file.

Is it safe to upload comments to an AI assistant?

The comments are public, but upload only what the question needs: the text and the row number, without usernames or IDs. Check your organisation's rules on AI services first.