Use LLMs in Excel formulas
=PROMPT()
function outputs the AI response to a range of text, similar to how Excel’s =SUM()
function that outputs the sum of a range of numbers.
For example, you can write =PROMPT("Hello, what model are you and who made you?")
in a cell’s formula. The default model will tell you that is called “Gemma” and made by Google DeepMind.
=PROMPT(A1, "Extract all person names mentioned in the text.")
in a cell’s formula and drag the the cell down across all rows, then watch it happily chugging along until all rows are processed. Oddly satisfying. Cellm is useful when you want to use AI for repetitive tasks that would normally require copy-pasting data in and out of a chat window many times.
/
). The default model is Gemma 2 2B served via Ollama. This is denoted by ollama/gemme2:2b
. Gemma 2 2B is a clever little model thats runs fine on a normal computer without GPU off-loading. Expand the drop-down list in Cellm’s ribbon menu select another model:
Select a model via the drop-down list.
=PROMPTWITH()
function. This function takes the model name as its first argument but is otherwise identical to =PROMPT()
. For example: `=PROMPTWITH(“openai/gpt4o”, A1, “Extract all person names mentioned in the text.”).