Logical Functions
Intermediate

OR to flag any one of several problems

A row needs a look if anything at all is wrong with it.

Task:

Before importing orders you want to catch bad rows. In E2:E7 return TRUE when a row has no customer, a quantity of zero or less, or a price over 1,000 (almost certainly a typo).

Hints

+5 XPno-hints bonus

Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.

The data in this exercise

This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.

7 rows × 5 columns6 cells you fill in
ABCDE
1OrderCustomerQtyPriceCheck?
2SO-51Alder Cafe412.5
3SO-5228.75
4SO-53Birch & Co022
5SO-54Cedar Deli61450
6SO-55Dove Bakery318
7SO-56Elm Bistro-19.5
What this exercise teachesMay contain the answer

A validation column should answer one question — does this row need a human? — and OR is that question. Checking each problem in its own column works too, but then someone has to scan three columns; one TRUE/FALSE column is something you can filter on.