Diagnose and fix an Excel formula error

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

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

Find the root cause of an Excel error before replacing the formula. Укажите: Error and formula, Referenced data, Intended behavior. Ожидаемый результат: A diagnosis, minimal correction, and verification plan.

1

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

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

2

Ваш промпт

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

Diagnose this Excel formula problem:
[error]

Referenced data and representative values:
[context]

Intended behavior:
[intent]

Do not immediately wrap the formula in IFERROR. First list the most likely causes in evidence order and give a quick test for each. Then provide the smallest justified correction, explain exactly what changed, and show tests for a normal row, the reported failure, a blank, and a no-match case. Keep genuine data-quality problems visible instead of hiding them with a fallback value.
Попробовать в Playground
Конфиденциально по умолчаниюПромпт собирается локально в вашем браузере. Не вводите конфиденциальную информацию в сервисы ИИ, если ваша организация этого не разрешает.

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

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

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

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

Error and formula
E2 shows #N/A. Formula: =XLOOKUP(A2,Inventory!A:A,Inventory!C:C)
Referenced data
A2 visually contains SKU-1042. Inventory column A contains imported SKU codes; the matching row appears as 'SKU-1042 ' with a trailing space. Inventory column C contains stock quantity numbers.
Intended behavior
Return the stock quantity for a matching SKU. Keep truly unknown SKUs visible as 'Not found'. Blank input rows should stay blank.

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

Most likely cause: The lookup value and imported key are not exactly equal because the inventory key has a trailing space. Confirm with =LEN(A2) and =LEN(Inventory!A2), or compare =A2=Inventory!A2. A second possibility is another non-printing character; test with CLEAN after TRIM.

Smallest justified correction: Clean the source key in a helper column, for example Inventory D2: =TRIM(CLEAN(A2)), fill it down, then use: =IF(A2="","",XLOOKUP(TRIM(CLEAN(A2)),Inventory!D:D,Inventory!C:C,"Not found"))

This preserves a visible no-match result, keeps blank request rows blank, and avoids recalculating transformations across a full imported column inside every lookup.

Tests: SKU-1042 with a cleaned source key returns its stated quantity; the original trailing-space row now matches; blank A2 returns blank; SKU-9999 returns “Not found.” Inspect duplicate cleaned keys before filling down because cleaning can collapse two different raw values into the same key.

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

  1. 1

    Cause-first diagnosis avoids hiding broken references or dirty data behind IFERROR.

  2. 2

    A minimal correction is easier to review than an unrelated replacement formula.

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

  • Was the reported cause reproduced with the supplied values?

  • Does the correction preserve visible signals for unexpected data?

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

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

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

What should I prepare before using “Diagnose and fix an Excel formula error”?

For “Diagnose and fix an Excel formula error,” prepare Error and formula, Referenced data, and Intended behavior. 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 “Diagnose and fix an Excel formula error” result not ready to use?

The result is not ready if it does not yet deliver the stated outcome—A diagnosis, minimal correction, and verification plan—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 “Diagnose and fix an Excel formula error”?

The published test record for “Diagnose and fix an Excel formula error” 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 · Рекомендуемые курсы

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

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

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