AIO APEX
Claude Sonnet 4.6 / GPT-4o / Gemini 2.5 ProYou're building a quarterly report and need formulas to calculate tiered commissions, flag overdue invoices, and cross-reference sales data from three different sheets — but you know what you want, not which combination of VLOOKUP, IF, and SUMPRODUCT will get you there.Data Analysis

Crie qualquer fórmula do Excel ou Google Sheets a partir de uma descrição em inglês simples

Compartilhar:
Crie qualquer fórmula do Excel ou Google Sheets a partir de uma descrição em inglês simples

Why this prompt matters

The average professional spends over 4 hours a week on spreadsheet tasks. Complex formulas — nested IFs, array formulas, XLOOKUP — stop most people cold. Without help, you spend an hour on Stack Overflow hunting for something close enough to adapt, or you settle for a pivot table that gives you 80% of the answer. This prompt gives you the formula and the understanding to verify it and adapt it when your data changes.

What we use it for

You're building a quarterly report and need formulas to calculate tiered commissions, flag overdue invoices, and cross-reference sales data from three different sheets — but you know what you want, not which combination of VLOOKUP, IF, and SUMPRODUCT will get you there.

Prompt

Act as a senior spreadsheet consultant with 15 years of experience in Excel and Google Sheets, who specializes in translating business requirements into formulas that non-technical users can understand and maintain.

I need to build a formula for the following task:
[DESCRIBE YOUR CALCULATION IN PLAIN ENGLISH — e.g., "I want to find the total sales for each region, but only count sales where the status is 'Closed Won' and the deal size is above $10,000"]

My spreadsheet has these columns:
[LIST YOUR COLUMN NAMES AND WHAT THEY CONTAIN — e.g., "Column A: Sales Rep Name, Column B: Region, Column C: Deal Status, Column D: Deal Size, Column E: Close Date"]

I am using: [Excel / Google Sheets]

INSTRUCTIONS:
1. Write the exact formula I should enter
2. Break down every function and argument in plain English — explain what each piece does and why
3. List any assumptions you made about my data
4. Flag common mistakes or edge cases (empty cells, wrong data types, case sensitivity)
5. Provide an alternative approach if a simpler formula exists
6. If Google Sheets and Excel syntax differ for this formula, show both versions

Output format:
FORMULA: [the exact formula to copy and paste]
HOW IT WORKS: [step-by-step explanation of each function]
ASSUMPTIONS: [what I assumed about your data]
WATCH OUT FOR: [common errors and edge cases]
SIMPLER ALTERNATIVE (if available): [a less complex approach if one exists]

Result

User's input: "I need to calculate the commission for each sales rep. Commission is 5% of total sales if they sold under $50,000 this month, 7% if between $50,000–$100,000, and 10% if over $100,000. Column A has rep names, Column B has their total monthly sales."

FORMULA:
=IF(B2<50000, B2*0.05, IF(B2<=100000, B2*0.07, B2*0.1))

HOW IT WORKS:
This formula uses nested IF statements to apply tiered commission rates. Starting from the outside in:

  • IF(B2<50000, ...) — Checks whether the sales total in B2 is less than $50,000. If TRUE: calculates B2*0.05 (5% commission) and stops. If FALSE: moves to the inner IF.
  • IF(B2<=100000, ...) — Since we already know B2 is at least $50,000, this checks if it's $100,000 or under. If TRUE: calculates B2*0.07 (7% commission). If FALSE: must be above $100,000.
  • B2*0.1 — The final 10% tier applies to any value above $100,000.

To apply to the full column, drag this formula down from row 2 to match your data range.

ASSUMPTIONS:

  • Column B contains numeric values (not formatted as text — left-aligned numbers indicate text format)
  • Row 2 is your first data row (Row 1 is your header)
  • Sales totals are already summed monthly totals, not individual transactions

WATCH OUT FOR:

  • Empty cells: If B2 is blank, the formula returns 0. Add IF(B2="","",IF(...)) to return blank instead of zero if preferred.
  • Negative values: If a rep had returns that brought their total negative, the first tier fires and produces a negative commission. Add MAX(0, [formula]) to floor it at zero.
  • Boundary confusion: $50,000 and $100,000 fall into the middle and top tiers respectively — the formula uses <= not < at the second check to include $100,000 in the 7% tier.

SIMPLER ALTERNATIVE:
If you add a lookup table with thresholds in one column and rates in another, you can replace the nested IF with VLOOKUP using approximate match:

=B2*VLOOKUP(B2, {0,0.05;50000,0.07;100000,0.1}, 2, TRUE)

This is easier to update when rates change — just edit the numbers in one place rather than rewriting nested logic. Works in both Excel and Google Sheets. When commission tiers change next quarter, your manager can update the table without touching the formula.

Fórmulas complexas de planilhas são um precipício de produtividade. Você sabe exatamente qual análise precisa — cruzar dados de vendas de três planilhas, sinalizar faturas com mais de 30 dias, calcular bônus em camadas — mas no momento em que VLOOKUP, SUMPRODUCT ou um IF aninhado aparece, a maioria dos profissionais ou chama um colega ou se contenta com algo mais simples.

Este prompt elimina esse atrito. Ele atua como um consultor sênior de planilhas que não apenas escreve a fórmula correta, mas explica cada argumento em inglês simples, sinaliza casos extremos antes que causem resultados errados e oferece uma alternativa mais simples quando existe.

O que torna este prompt diferente

A maioria das solicitações à IA para ajuda com planilhas produz uma fórmula sem explicação — você não pode verificar se ela está correta, e quando sua estrutura de dados muda, você não consegue adaptá-la. Este prompt é projetado em torno de cinco seções de saída estruturadas que constroem seu entendimento, não apenas entregam uma resposta:

  • FORMULA — A fórmula exata para copiar e colar
  • HOW IT WORKS — Cada função e argumento explicado em inglês simples
  • ASSUMPTIONS — O que a IA assumiu sobre sua estrutura de dados
  • WATCH OUT FOR — Células vazias, números formatados como texto, condições de contorno
  • SIMPLER ALTERNATIVE — Uma abordagem menos complexa quando existe

Essa última seção é geralmente a mais valiosa. Uma fórmula SUMPRODUCT funcional é impressionante; uma tabela de consulta com correspondência aproximada VLOOKUP que seu gerente pode atualizar sozinho é uma engenharia melhor. O prompt solicita explicitamente ambas as opções.

Para quem é isso

Este prompt oferece mais valor para analistas, gerentes de operações, equipes financeiras e gerentes de projeto que usam planilhas como sua principal ferramenta de dados, mas não são usuários avançados de fórmulas. Se você consegue descrever claramente qual cálculo precisa, mas não sabe quais funções do Excel combinar — este prompt é para você.

Como usar

Preencha duas seções entre colchetes antes de enviar:

  1. Descreva seu cálculo em inglês simples. Seja específico — «contar vendas onde o status é Closed Won e o tamanho do negócio excede dez mil dólares» é muito melhor do que «contar vendas». Quanto mais precisa sua descrição, mais precisa a fórmula. Inclua condições, limites ou exceções.
  2. Liste os nomes das suas colunas e o que elas contêm. Nomeie as colunas relevantes: Coluna A Nome do representante de vendas, Coluna B Região, Coluna C Tamanho do negócio.

Especifique Excel ou Google Sheets. Quando a sintaxe diferir — XLOOKUP não existe no Sheets — o prompt fornece automaticamente ambas as versões.

Exemplo real de saída

Para um problema de comissão de vendas em camadas — cinco por cento abaixo de cinquenta mil dólares, sete por cento entre cinquenta e cem mil, dez por cento acima de cem mil — o prompt produz a fórmula IF aninhada, uma explicação em inglês simples de cada verificação de camada, um aviso de que células vazias retornam zero em vez de vazio, uma nota de que totais de vendas negativos produzirão comissões negativas, e uma alternativa de matriz VLOOKUP que é mais fácil de manter quando as taxas de comissão mudarem no próximo trimestre.

Modelos compatíveis

Otimizado para Claude Sonnet 4.6 e GPT-4o, ambos produzem saída estruturada de múltiplas seções confiável. Também funciona com Gemini 2.5 Pro. Para fórmulas que abrangem várias planilhas ou envolvem referências cruzadas complexas, Claude tende a produzir explicações mais limpas da lógica aninhada.

productivitydata analysisexcelgoogle-sheetsspreadsheetsformulas
Compartilhar:
Crie qualquer fórmula do Excel ou Google Sheets a partir de uma descrição em inglês simples | AIO APEX