Build an Excel conditional summary formula

Автор: AILesson5 мин на настройкуПроверено на:ChatGPTПроверено: 2026-08-28

Быстрый ответ

Create a SUMIFS, COUNTIFS, or AVERAGEIFS formula from explicit criteria. Укажите: Summary question, Table layout, Criteria and boundary rules. Ожидаемый результат: A criteria-safe summary formula with date, blank, and range checks.

1

Добавьте контекст

ваш текст остаётся в этом браузере. AILesson Prompts не отправляет его ни в модель, ни на сервер.

2

Ваш промпт

Незаполненные поля остаются видимыми как заполнители, поэтому вы всё равно можете скопировать и отредактировать промпт

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.
Попробовать в Playground
Конфиденциально по умолчаниюПромпт собирается локально в вашем браузере. Не вводите конфиденциальную информацию в сервисы ИИ, если ваша организация этого не разрешает.

От исходных данных к результату

Разобранный пример

Посмотрите, как конкретный контекст превращает этот рецепт в полезный результат

Реальный ввод

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.

Пример вывода

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.

Почему это работает

  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.

Проверьте результат

  • 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?

Используйте уверенно

Часто задаваемые вопросы

Практические ответы о том, когда использовать этот рецепт, что нужно предоставить и где по-прежнему важна проверка человеком

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.

Другие способы изучения

Где этот рецепт применим

Продолжайте работу

AILesson · Рекомендуемые курсы

ваш следующий шаг: примените ИИ на практике

Перейдите от понимания ИИ к выполнению задач. Практикуйтесь в составлении запросов, проверке и улучшении результатов с помощью интерактивных уроков для работы и повседневной жизни.

Просмотреть все курсы