A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Could you share us a test file to reproduce your issue?
For sharing a sample workbook, upload to OneDrive or any other cloud drives. Then post a link here.
Check that the cells you are referencing in your formulas are actually numbers. Sometimes cells can be formatted as numbers but still contain text or other characters that can cause errors in calculations.
You may use isnumber formula to check if the value in cell is a really number.
.
You may try this formula to convert text to number.
=NUMBERVALUE(CLEAN(A2))