I get a divide by zero error when trying to =AVERAGE the output of a =SUBSTITUTE function in two cells. When I don't use the =SUBSTITUTE function, but instead enter the desired result manually, I don't get the error. I don't understand why.
Google Sheets – Why =AVERAGE Returns Divide by Zero Error
google sheets
Related Topic
- Google Sheets – How to Fix Issues with SUBSTITUTE Function
- Google Sheets – How to Make IF Function Output Nothing
- Google-sheets – How to use AVERAGE inside ARRAYFORMULA in Google Sheets
- Google-sheets – Problems with SUMIFS function
- Google-sheets – Getting #DIV/0 error in Google Sheets for AVERAGE, SUM, COUNT, etc on column generated by ARRAYFORMULA
Best Answer
This is because
SUBSTITUTE
transforms number to string or text.To convert it back to number, You could use any of the below methods:
*1
-
) a zero:+0
--
(For Ex:
--SUBSTITUTE(...)
)