Replace #DIV/0! with a dash using IFERROR
Keep a report readable when a division has nothing to divide by.
IFERROR
Returns a value you choose when a formula errors, and the formula's result otherwise.
IFERROR(value, value_if_error)
Logical Functions.
=IFERROR(C2/B2,"-")
Returns - when B2 is 0, the rate otherwise
Tries the division and shows a dash in place of #DIV/0! when there is nothing to divide by.
It hides every error, including the #REF! and #NAME? you would want to see. Wrap only the part of a formula that can legitimately fail, not the whole thing.
Consider instead: XLOOKUP's own fallback argument, when the error you are catching is a lookup with no match.
Each of these is a wrong turn the practice exercises recognise and name. They are the misconceptions, not the answers.
Knowing what a function does and being able to write it from memory are different skills. These close the gap.