Build a multi-condition Excel IF formula

작성자: AILesson5 분 소요테스트::ChatGPT검토일: 2026-08-28

빠른 답변

Turn ordered business rules into a formula with explicit precedence and edge cases. 제공할 내용: Business rules, Columns and data types, Example cases. 예상 결과: A reviewable IF or IFS formula with a decision table and tests.

1

맥락 추가

텍스트는 이 브라우저에 유지됩니다. AILesson Prompts는 이를 모델이나 서버로 보내지 않습니다.

2

프롬프트

채워지지 않은 필드는 플레이스홀더로 표시되므로 프롬프트를 복사하고 편집할 수 있습니다

Create an Excel IF, IFS, or SWITCH formula for these rules:
[rules]

Workbook layout:
[layout]

Example cases and expected results:
[examples]

First convert the rules into an ordered decision table. Identify overlaps, gaps, ambiguous boundaries, and the fallback result. Do not write the formula until precedence is explicit. Then return the formula for the first data row, explain why IF, IFS, or SWITCH is appropriate, and test every branch including blanks, equal-to-boundary values, and a case matching more than one condition. Do not hide unexpected inputs unless a fallback is explicitly authorized.
Playground에서 사용해 보기
기본적으로 비공개프롬프트 구성은 브라우저에서 로컬로 이루어집니다. 조직에서 허용하지 않는 한 기밀 정보를 AI 서비스에 입력하지 마세요.

입력에서 결과까지

적용 예시

구체적인 맥락이 이 레시피를 바로 사용할 수 있는 결과로 바꾸는 방법을 확인하세요

실제 입력

Business rules
Status is 'Review' when score is blank. Status is 'Priority' when score is at least 90 and overdue days are greater than 0. Otherwise: score 90–100 is 'High', 70–89 is 'Medium', below 70 is 'Low'. Invalid scores below 0 or above 100 must show 'Invalid'.
Columns and data types
C: Score (number or blank); D: Overdue Days (whole number); E: Status. Data starts on row 2.
Example cases
C2=95,D2=2 => Priority; 95,0 => High; 90,0 => High; 70,0 => Medium; 69,0 => Low; blank => Review; 105 => Invalid.

예시 출력

Decision order: blank → Review; outside 0–100 → Invalid; score ≥90 and overdue >0 → Priority; score ≥90 → High; score ≥70 → Medium; otherwise → Low. The invalid check must precede the threshold branches, and Priority must precede High because both match a score of 90 or more.

E2 formula =IFS(C2="","Review",OR(C2<0,C2>100),"Invalid",AND(C2>=90,D2>0),"Priority",C2>=90,"High",C2>=70,"Medium",TRUE,"Low")

IFS is clearer than deeply nested IF because the rules are ordered predicates rather than a single exact-value mapping. Tests: 95/2 → Priority; 95/0 and 90/0 → High; 70/0 → Medium; 69/0 → Low; blank → Review; 105 → Invalid. Confirm whether a negative overdue value is valid and whether numeric text should be accepted before filling down.

효과가 있는 이유

  1. 1

    An ordered decision table exposes precedence before nested logic makes it hard to see.

  2. 2

    Testing overlaps and exact boundaries catches the most common classification mistakes.

결과 확인

  • Does each possible input reach one intended branch?

  • Are more specific or higher-priority conditions evaluated first?

  • Is the fallback visible and authorized?

안심하고 사용하세요

자주 묻는 질문

이 레시피를 언제 사용해야 하는지, 무엇을 제공해야 하는지, 그리고 어떤 부분에서 사람의 검토가 여전히 중요한지에 대한 실용적인 답변

What should I prepare before using “Build a multi-condition Excel IF formula”?

For “Build a multi-condition Excel IF formula,” prepare Business rules, Columns and data types, and Example cases. 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 a multi-condition Excel IF formula” result not ready to use?

The result is not ready if it does not yet deliver the stated outcome—A reviewable IF or IFS formula with a decision table and tests—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 a multi-condition Excel IF formula”?

The published test record for “Build a multi-condition Excel IF 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.

더 많은 탐색 방법

이 레시피가 적합한 상황

작업을 계속 진행하세요