Hunch

HUNCHPICK: one option from your list

Updated · Edoardo Panichi, maker of Hunch

=HUNCHPICK(A2, "billing|bug|feature request|other") returns the one option from your list that best describes the text. In Excel it is =HUNCH.PICK. Add "confidence" to get how sure the pick is.

Syntax

Google Sheets=HUNCHPICK(text, options, [question], [as])
Excel=HUNCH.PICK(text, options, [question], [as])
ArgumentRequiredWhat it is
textYesA cell or one-column range with the text to classify.
optionsYes2 to 255 options separated by |. Describe an option after a colon and a space: "bug: something is broken|billing: invoices, charges, refunds|other". The cell shows only the label.
questionNoAn instruction for the choice. Default: "Which option best describes this text?" Use "" to keep the default and still set as.
asNo"option" (default) returns the label. "confidence" returns the probability of the chosen option, 0 to 1. "probabilities" returns every option with its probability, highest first.

Examples with real outputs

=HUNCHPICK(A2:A7, "billing: invoices, charges, refunds|bug: something is broken|feature request: asks for something new|account: login, users, access|other")

In Excel: =HUNCH.PICK(A2:A7, "billing: invoices, charges, refunds|bug: something is broken|feature request: asks for something new|account: login, users, access|other")

=HUNCHPICK(A2:A7, "billing: invoices, charges, refunds|bug: something is broken|feature request: asks for something new|account: login, users, access|other", "", "confidence")

In Excel: =HUNCH.PICK(A2:A7, "billing: invoices, charges, refunds|bug: something is broken|feature request: asks for something new|account: login, users, access|other", "", "confidence")

RowABC
1TicketCategoryConfidence
2I can't log in since the password reset email never arrives.account0.83
3Would be great if the dashboard could export to PDF.feature request1.00
4Your invoice shows 12 seats but we only have 9 users.billing1.00
5Charts are blank in Safari after the last update.bug1.00
6Can I add my accountant as a read-only user?account0.99
7Do you have an office in Madrid?other1.00

Five of the six picks come back at 0.99 or higher. The login problem gets account at 0.83, because a reset email that never arrives could also be a bug, and the lower confidence says so. The office question lands in other, which is what that option is for.

Writing good options

Put the options in a cell (say $F$1) and write =HUNCHPICK(A2:A500, $F$1). Editing the list in one place re-sorts the whole column.

Using confidence

The confidence is the probability of the chosen option. Near 1, the pick is clear. Lower values mean the text fits more than one option or none well. Filter on it to get a short review queue instead of rereading every row.

=FILTER(A2:B500, HUNCHPICK(A2:A500, $F$1, "", "confidence") < 0.6)

In Excel: =FILTER(A2:B500, HUNCH.PICK(A2:A500, $F$1, "", "confidence") < 0.6)

"probabilities" shows the whole distribution, such as bug 0.62, account 0.31, other 0.07, which helps when you are still deciding where the boundaries between options should be.

Cost and limits

Questions

Can one text get two categories?
HUNCHPICK returns exactly one. For labels that can overlap, ask one yes/no question per label with HUNCHMULTI and keep every label above your threshold.
Does the order of the options matter?
No. The model reads the whole list. Order them the way you want them to read in your sheet.
Why did a row get other?
Because none of your options described it better. Read a few of those rows: they often show the option your list is missing.

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.

More reference and guides