A text fallback turns a number column into a mixed one; a zero keeps it numeric.
Cost per unit is cost divided by units, and two product lines made nothing this month. In D2:D6 give the cost per unit, returning 0 where there were no units, and in D7 the total of the column.
Solve it on your own to keep the bonus. Each hint gets one step closer to the formula.
The same formula in the other shapes it takes at work.
Handle errors gracefully using IFERROR.
A text fallback turns a number column into a mixed one; a zero keeps it numeric.
Turn imported text into numbers, and anything unreadable into a known default.
This is the grid you start with. Cell references in the task — B6, C2 — point at the row numbers and column letters below.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Line | Cost | Units | Per unit |
| 2 | Mugs | 840 | 420 | |
| 3 | Plates | 0 | 0 | |
| 4 | Bowls | 615 | 205 | |
| 5 | Jugs | 120 | 0 | |
| 6 | Trays | 450 | 150 | |
| 7 | Total |
Returning "N/A" hides the error from a reader but not from SUM, which ignores text — fine here — yet averages, charts and lookups downstream often do not. Returning 0 keeps the column numeric. Note the trade-off: Jugs had a real cost and no units, and 0 hides that, so use this where 0 genuinely means "nothing to report".