Why it works
- What it does
- REPT repeats text a number of times and drops any fraction, so REPT("|",37/10) is three bars. It gives a quick chart inside a column. A negative count is an error, so put a floor under the number with MAX(0, …).
- The shape of the formula
- =REPT("|",MAX(0,number)/10)
- How to remember it
- REPT(what, how many times); never fewer than 0 times.
- The usual mistake
- Feeding REPT a negative number. Oversold items show #VALUE! instead of no bar.
Keep practicing
Updated