Handle an empty registration campaign
Give a useful result when a calculation divides by zero.
YOUR TASK
Put IFERROR to work.
Clicks are in B2 and signups in C2. Calculate signups divided by clicks in G2. If the calculation produces an error, return the number 0. Return a decimal ratio, so 0.1 means 10%.
Give me a hint
IFERROR takes a calculation and the fallback value to use when it errors.
Show the worked solution
=IFERROR(C2/B2,0)IFERROR catches division by zero when clicks are zero. When clicks are positive, it returns the actual signup-to-click ratio. IF(B2=0,0,C2/B2) also works.
Try it yourself before opening the solution. A completed task with the solution open is saved as reviewed practice.
What can I use in this checker?
SUM, SUMPRODUCT (matching range dimensions), INDEX (single-cell result), MATCH (exact match with 0), AVERAGE, AVERAGEIF, MEDIAN, MIN, MAX, COUNT, COUNTA, IF, IFERROR, AND, OR, SUMIF, SUMIFS, COUNTIF, COUNTIFS, exact-match VLOOKUP and XLOOKUP, ROUND, LEFT, RIGHT, LEN, TRIM, UPPER, LOWER, CONCAT, arithmetic, comparisons, percentages and absolute cell references. Use the displayed data and double quotes for text. For AND and OR, use comparisons or logical values. Text-cleaning tasks check letter case. This is a focused formula checker; it does not include Excel’s full feature set.
