Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Combining Conditions | Calculating Data Like a Pro
A Fun Way to Excel

bookCombining Conditions

Stryg for at vise menuen

The IFS Function

=IFS(logical_test1; value_if_true1; [logical_test2; value_if_true2]; ...)

=IFS(D9>100; "High"; D9>50; "Medium"; TRUE; "Low")

IFS has no built-in "else". If no condition matches, it returns an error. Always add TRUE, "default value" as the last pair to guarantee a result for every row.

Note
Note

Order matters. Excel checks conditions left to right and stops at the first TRUE. Put the most specific (narrowest) conditions first — a broad condition placed early will swallow everything below it. For example, putting D9>0 before D9>50 means "Medium" and "High" are never reached.

Combining Conditions with AND

All conditions must be true.
All conditions TRUE → TRUE | Any condition FALSE → FALSE.

=IF(AND(D9>100; B9="Dining"); "Review"; "OK")

Combining Conditions with OR

At least one condition must be true.
Any condition TRUE → TRUE | All conditions FALSE → FALSE.

=IF(OR(D9>100; B9="Dining"); "Review"; "OK")
question mark

Hi

Vælg det korrekte svar

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 3. Kapitel 5

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

Sektion 3. Kapitel 5
some-alt