Build an Excel conditional summary formula

Auteur: AILesson5 min de préparationTesté avec:ChatGPTRévisé: 2026-08-28

Réponse rapide

Create a SUMIFS, COUNTIFS, or AVERAGEIFS formula from explicit criteria. Fournir: Summary question, Table layout, Criteria and boundary rules. Résultat attendu: A criteria-safe summary formula with date, blank, and range checks.

1

Ajouter votre contexte

Votre texte reste dans ce navigateur. AILesson Prompts ne l’envoie ni à un modèle ni à un serveur.

2

Votre prompt

Les champs non remplis restent visibles sous forme d’espaces réservés, afin que vous puissiez quand même copier et modifier le prompt.

Create an Excel conditional summary formula.

Question:
[question]

Table layout:
[layout]

Criteria and boundary rules:
[criteria]

Choose SUMIFS, COUNTIFS, AVERAGEIFS, or another standard function only after defining the aggregation and each criteria range. Use equal-sized ranges and real Excel dates. Explain wildcard behavior and whether blanks, errors, hidden rows, and duplicate records are included. Return a structured-reference formula when a table name is supplied, a cell-range alternative, and four test cases including a date boundary and a no-match result.
Essayer dans le Playground
Privé par défautL’assemblage du prompt se fait localement dans votre navigateur. Évitez de placer des informations confidentielles dans un service d’IA, sauf si votre organisation l’autorise.

De l'entrée au résultat

Un exemple détaillé

Voyez comment un contexte concret transforme cette recette en résultat utilisable.

Entrée réelle

Summary question
Sum net revenue for completed online orders in June 2026 for the East region.
Table layout
Excel Table named Orders with columns OrderDate (date), Region (text), Channel (text), Status (text), and NetRevenue (number).
Criteria and boundary rules
Include 1 June through 30 June 2026. Region, Channel, and Status must be exact matches. Exclude cancelled or blank statuses naturally by requiring Completed. Duplicate rows are data errors and are not automatically removed.

Exemple de sortie

Use SUMIFS because one numeric field is summed under multiple row-level conditions.

Table formula =SUMIFS(Orders[NetRevenue],Orders[OrderDate],">="&DATE(2026,6,1),Orders[OrderDate],"<"&DATE(2026,7,1),Orders[Region],"East",Orders[Channel],"Online",Orders[Status],"Completed")

Using “less than 1 July” includes every time on 30 June even if OrderDate contains timestamps. Text criteria are exact apart from Excel's usual case-insensitivity. Blank and cancelled statuses do not match Completed. Hidden rows are included; duplicate rows are also included and must be checked separately.

Range version: if rows are 2–1000 and columns A:E follow the stated order, use =SUMIFS($E$2:$E$1000,$A$2:$A$1000,">="&DATE(2026,6,1),$A$2:$A$1000,"<"&DATE(2026,7,1),$B$2:$B$1000,"East",$C$2:$C$1000,"Online",$D$2:$D$1000,"Completed"). Test 1 June, a normal June row, 30 June 23:00, and a no-match subset against manual totals.

Pourquoi cela fonctionne

  1. 1

    Separating the value range from each criteria range prevents shifted-range errors.

  2. 2

    Explicit date boundaries avoid silently excluding the last day of a reporting period.

Vérifier le résultat

  • Are every sum and criteria range the same size?

  • Are start and end dates inclusive exactly as intended?

  • Does a manual subtotal for a small sample match the formula?

Utilisez-la en toute confiance

Questions fréquentes

Des réponses pratiques sur le bon moment pour utiliser cette recette, ce qu’il faut fournir et les cas où une vérification humaine reste nécessaire.

What should I prepare before using “Build an Excel conditional summary formula”?

For “Build an Excel conditional summary formula,” prepare Summary question, Table layout, and Criteria and boundary rules. Replace placeholders only with information you can verify. If a detail is unknown, preserve that uncertainty explicitly instead of asking the model to infer it.

When is the “Build an Excel conditional summary formula” result not ready to use?

The result is not ready if it does not yet deliver the stated outcome—A criteria-safe summary formula with date, blank, and range checks—from the supplied evidence, or if it relies on unresolved assumptions, missing approvals, or invented details. Use the checks as release gates: revise the source inputs or assign a named, authorized reviewer instead of polishing an unsupported output.

Which AI tools have recorded tests for “Build an Excel conditional summary formula”?

The published test record for “Build an Excel conditional summary formula” lists ChatGPT as of 2026-08-28. This confirms recorded runs, not guaranteed compatibility or identical results in later product versions. For another tool or version, keep every constraint visible and repeat the result checks before use.

Plus de façons d'explorer

Où se situe cette recette

Faites avancer votre travail