Documentation M.CATEGORIZE

M.CATEGORIZE

M.CATEGORIZE lets you categorize one item into a pre-set list of category options.

M.CATEGORIZE takes an input to categorize, an array of category options, and 'context' texts to help with the categorization.

Examples

=M.CATEGORIZE("New York", {"rural","suburban","urban"})
=M.CATEGORIZE(B2, $A$2:$A$8, "Identify which risk category the contract should fall under")

Parameters

ParameterTypeDescription
toCategorizeText/Cell ReferenceThe file or text you'd like to categorize
CategoriesArrayThe category options you are trying to categorize into. Can be 1D or 2D array.
Context1Text/Cell ReferenceThe context you would like to provide for the categorization (instructions/examples)
[Context2]Text/Cell ReferenceOptional additional context entries. Continue adding information as needed

Note: Context arguments are most commonly instructions or examples of past categorizations.