A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
That error typically indicates that the content of at least one precedent cell referred to in the formula is not a number... regardless of what it looks like or what the Format of the cell(s) may indicate.
Use the Trace Precedents tool in the Formula Auditing group on the Formulas tab to locate the problem cell(s).
The Text to Columns tool on the Data tab can be used to convert the cell content to General or some form of Number format.