Hunch

Classify text into categories with a Google Sheets formula

Updated · Edoardo Panichi, maker of Hunch

Any column of text, any list of categories: headlines, product names, feedback, notes. One formula picks a category per row and returns the option exactly as you wrote it, so the column is ready to pivot.

The pattern

=HUNCHPICK(A2:A1000, "tutorial|news|opinion|product update|other", "What kind of article is this?")

In Excel: =HUNCH.PICK(A2:A1000, "tutorial|news|opinion|product update|other", "What kind of article is this?")

Options separated by |. The third argument is the question; leave it out and the default is "Which option best describes this text?", which is right most of the time.

Real outputs

RowAB
1TitleKind
2Step by step: connecting Google Sheets to your CRM with a webhooktutorial
3Our Q3 update: faster imports and a redesigned dashboardproduct update
4Why most lead scoring models fail, and what to do insteadopinion
5Regulators approve the merger of two spreadsheet software makersnews

Describe options with a colon

=HUNCHPICK(A2:A1000, "bug: something is broken or crashes|question: how-to or pricing question|feedback: praise or suggestion, no action needed|other")

In Excel: =HUNCH.PICK(A2:A1000, "bug: something is broken or crashes|question: how-to or pricing question|feedback: praise or suggestion, no action needed|other")

Everything after the colon is a description the model reads; the part before it is what comes back in the cell. Use descriptions when two options could overlap, or when an option means something specific in your company.

One pick or several yes/no columns?

Always include other. Without it the model is forced to pick the least wrong option, and your counts inherit the error.

Questions

How many options can a list have?
Up to 255. Long lists cost a few more tokens per row but no more credits. Give the full list rather than a shortlist.
Does the option text come back exactly as written?
Yes, the label before the colon, character for character. That is what makes COUNTIF and pivots work.

Run it on your own column

Copy the template (or use the Excel add-in), paste your key, point the formula at your data. Every formula here has its Excel spelling underneath. 100 rows free to start, then $29 for 5,000 rows. Credits never expire and there is no subscription.

Reference: HUNCHPICK

More guides